Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-07-2020 02:15 AM
I'm using neovis for visualize the db in my web app.
I'm searching for a way to handle the node color. For example in my db there are the two type of node Friend
and RemovedFriend
. The first ones are yellow in the figure below, the second one is red.
I want to color the Friend
node with green. Is there a way to handle the color?
Actually this is my config. I tried to add 'color' attrbute in labels without any results
let config = {
container_id: "viz",
server_url: "bolt://localhost:7687",
server_user: "neo4j",
server_password: "neo4j",
arrows: direction,
labels: {
'User': {
'caption': 'name',
},
'Friend': {
'caption': 'name',
'size': dimension,
},
'RemovedFriend': {
'caption': 'name',
'size': dimension,
},
},
relationships: {
"FRIEND": {
"thickness": "count",
"caption": false
},
}
initial_cypher: cmd,
};
05-08-2020 11:30 AM
Did you looked at this link: https://github.com/neo4j-contrib/neovis.js/issues/49 ?
05-09-2020 06:52 AM
Thanks for your answer. I have already read that link, but I don't understand how can I handle colors. I tried to add a community for that nodes, but I didn't get any results
06-04-2021 12:49 AM
Hey did you find anything for this?
All the sessions of the conference are now available online