cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Pause, resolving how to handle anonymous content

How to hardcode node colour in neovis

abhishekjayant1
Node Clone

Hey folks,
I want to set the 'red' colour to a node label while visualizing it in neovis, how can I do that? I didn't find anything in the neovis documentation.

My current config looks like this:

var config = {
        container_id: "similarity",
        server_url: "*********************",
        server_user: "******",
        server_password: "******",
        labels: {
            "Side_effect": {
                caption: "name",
            },
            "Adverse_Event": {
                caption: "name",
                //color:'red'
                 
            },
            "Ingredient":{
                caption: "name",
            
            },
            "Product":{
                caption: "name",
                
            },
            
        },
       

Here, I want to give the 'red' colour to the 'Adverse_Event' nodes. Thanks in advance!

0 REPLIES 0
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online