anvaka / VivaGraphJS

Graph drawing library for JavaScript
Other
3.76k stars 425 forks source link

How to avoid vivagraph renders the graph outside of the container? #130

Closed lorenzolopez928 closed 9 years ago

lorenzolopez928 commented 9 years ago

i am developing a social network visualization component. I am using the Vivagraph library, but when I add nodes to the forced layout that are not connected to another node, the graph goes outside of the container.

anvaka commented 9 years ago

You can add invisible node to your graph, pin it, and the for each isolated node add invisible edge which connects them to invisible node.

lorenzolopez928 commented 9 years ago

Thanks,I was thinking already in that, I do it and then I zoomOut the image.