almende / chap-links-library

a web based visualization library for displaying graphs, networks, and timelines
http://almende.github.com/chap-links-library
Apache License 2.0
599 stars 167 forks source link

[Question] Saving and loading a network #342

Closed marcantoinefortier closed 9 years ago

marcantoinefortier commented 9 years ago

Let's say I generate a network and I don't like the disposition of the nodes. I can move them and have a display that I like, but as soon as I regenerate it, the nodes get their original position. Is there any way I can save a network and all his nodes' position so I can load it later get the same network?

josdejong commented 9 years ago

You can set a fixed position for nodes, however, there is no solution to retrieve the current position of nodes such that you can save them for next time.

The Network visualization of the successor of chap-links-library, vis.js, does have methods for this, like Network.storePositions().

marcantoinefortier commented 9 years ago

Alright, thank you for the answer. I will check that out.

Marc-Antoine Fortier

Le 2015-03-18 à 13:56, Jos de Jong notifications@github.com a écrit :

You can set a fixed position for nodes, however, there is no solution to retrieve the current position of nodes such that you can save them for next time.

The Network visualization of the successor of chap-links-library, vis.js http://visjs.org/, does have methods for this, like Network.storePositions().

— Reply to this email directly or view it on GitHub https://github.com/almende/chap-links-library/issues/342#issuecomment-82957237.