Reputation: 13
I create a hierarchical network with Vis.js. I have defined that a node can have children, but they are not displayed if I want them to be. With one click I can load the data for the children from the backend and insert the loaded nodes and edges.
The problem is that new nodes are sometimes positioned so that the edges cross, even though this is not necessary.
Can I define some option to affect the positioning in any way?
I found this 6y old thread vis.js hierarchical network graph layout.
This is about version 4.x. an i am now on v9.1.9. Maybe there is a solution out there and i don't want to warm up any dead bodies :-)
checked official documentation, google and stackoverflow
https://visjs.github.io/vis-network/docs/network/
Upvotes: 0
Views: 28