3

I am trying to change color of edges of gene_gene relationship by Neovis but nothing happened. My config codes are belowing, I want to change the edges of gene_gene relationship in Neovis and I am trying to set "color":"#F4606C" but failed. I wanna to ask how to change displayed color for edges in Neovis?

var sid = $("#inferred_title_name").val();
var config = {
    container_id: "viz_gene",
    server_url: "bolt://localhost:7687",
    server_user: "neo4j",
    server_password: "lucas",
    // arrows: true,
    initial_cypher: "MATCH (g1:Gene)-[r1]-(s1:Symptom) where s1.SymptomId=\""+sid+"\" optional match (g1)-[r2]-(g2:Gene)-[r3]-(s1) RETURN *",
    labels: {
        "Symptom": {
            caption: "SymptomId",
            size: 1,
            community: "community",
            image: '../static/images/sym.png',
            "font": {
                "size":10,
                "color":"#000000"
                }
            },
        "Disease": {
            caption: "DiseaseId",
            size: "degree",
            community: "community",
            image: '../static/images/dis.png',
            "font": {
                "size":10,
                "color":"#000000"
                }
            },
        "Gene": {
            caption: "GeneId",
            size: "degree",
            community: "community",
            image: '../static/images/gene.png',
            "font": {
                "size":10,
                "color":"#000000"
                }
            },
        "Drug": {
            caption: "DrugId",
            size: "degree",
            community: "community",
            image: '../static/images/drug.png',
            "font": {
                "size":10,
                "color":"#000000"
                }
            }
        },
    relationships: {
        "Symptom_Disease": {
            caption: "false",
            thickness: "count",
            "font": {
                "size":10,
                "color":"#000000"
            }
        },
        "Symptom_Drug": {
            caption: "false",
            thickness: "count",
            "font": {
                "size":10,
                "color":"#000000"
            }
        },
        "Disease_Drug": {
            caption: "false",
            thickness: "count",
            "font": {
                "size":10,
                "color":"#000000"
            }
        },
        "Symptom_Gene": {
            caption: "false",
            thickness: "count",
            "font": {
                "size":10,
                "color":"#000000"
            },
            "line":{
                "color":"#FD978F"
            }
        },
        "Gene_Gene": {
            caption: "false",
            thickness: "count",
            "font": {
                "size":10,
                "color":"#000000"
            },
            "color":"F4606C"
        },
        "Drug_Drug": {
            caption: "false",
            thickness: "count",
            "font": {
                "size":10,
                "color":"#FD978F"
            }
        }
    },
    };
viz_gene = new NeoVis.default(config);
viz_gene.render();
  • I don't have any answers but I just wanted to know that are you able to render your images? – hannah Dec 13 '22 at 10:40

0 Answers0