Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-18-2019 07:29 AM
I'm writing a web app were the goal is to draw a sub-graph of a neo4jdb. Actually I'm using vis.js, but I don't like it so much. Maybe I don't use it in the right way and for that reason the result now is this:
Are there any options that I can set to reduce the size of the nodes or to write the content in an other way in order to avoid the overlapping?
Finally, in your opinion which is the best framework to draw a graph in a js app ? Should I continue with vis.js or it's better to change ?
11-29-2019 06:11 AM
The nodes in this visualization do look odd with their sizes, some possible solutions are:
In order to avoid overlapping you can set an 'avoidOverlap' property according to their documentation, however this will not fix nodes overlapping and thus obscuring relations. Increasing the springLength (length of edges) will also give more slack to your nodes to move around.
Both can be found on this page: https://visjs.github.io/vis-network/docs/network/physics.html for each of the possible physic engines
Opinion wise, my personal preference goes to d3.js force directed graphs, but they do have a steep learning curve. If you are okay with (and have time to) getting to learn the API it can provide a good base for graph related visualizations. If you are keeping to simple graph layouts vis.js should suffice.
I hope this will help you.
All the sessions of the conference are now available online