neo4j-contrib / neovis.js

Neo4j + vis.js = neovis.js. Graph visualizations in the browser with data from Neo4j.
Apache License 2.0
1.62k stars 324 forks source link

Neovis not displaying the correct node labels from query #84

Open pborah88 opened 4 years ago

pborah88 commented 4 years ago

Scenario -

Database tables interacting with each other (within same and different databases)

Setup -

image

Question - how exactly does neovis pick the default label to display? In the style settings, I've clearly asked it to pick the "Table" label and display the property - tableName which is shared by both Sourcetable and TargetTable.

("SourceTable" and "TargetTable" as displayed in the image are not node properties if anyone is wondering about that!)

Even this isn't an issue if node size was being properly reflected as per the pagerank values. As you can see, relationship thickness is the only thing that being correctly rendered here.

thebestnom commented 4 years ago

Currently it takes the first label (I don't really know what this means 😅), it's kinda arbitrary... We need to implement multi labels for a lot of time, but I didn't had the energy to bug the maintainer again (It's kinda hard to reach him) for everytime I want to merge something so I just kinda gave up...

If you want to implement it, it shouldn't be that hard, and I can get in contact with him after you open pr