neo4j-contrib / neovis.js

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

How to display labels outside its node? #335

Closed aizaz-sparkai closed 1 year ago

aizaz-sparkai commented 1 year ago

I'm currently using neovis.js 2.0.2 version for my react app.

According to initial docs label display out side of its node like:

Screenshot 2023-04-05 at 3 04 59 PM

but In my react app it display like:

Screenshot 2023-04-05 at 3 06 34 PM

I want to display labels outside of its node.

Please guide me the right direction.

thebestnom commented 1 year ago

I think that need to change from circle to dot, but Im not sure, check in vis docs

aizaz-sparkai commented 1 year ago

you are the real hero.

aizaz-sparkai commented 1 year ago

Can we show relation label also?

thebestnom commented 1 year ago

Yep, same way you do for node

aizaz-sparkai commented 1 year ago

currently I don't have properties in relations and I want to display type of relationship as label of relationship