Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Every time you update the "network" shape always changes, how can you make the shape unchanged? #4300

Open
itpwuwei opened this issue May 29, 2019 · 2 comments

Comments

@itpwuwei
Copy link

Every time you update the "network" shape always changes, how can you make the shape unchanged?

@YannCami
Copy link

YannCami commented Jun 6, 2019

Using network.storePositions() will put the X and Y positions of all nodes into the dataset.
That way whenever the network is redrawn the nodes will stay in place.

@christophe-lejeune
Copy link

christophe-lejeune commented Jun 7, 2019

If your layout is not hierarchical, the randomSeed option prevents the shape to change... with no need to store the positions. Of course, this solution will not keep the shape unchanged if new nodes are added or if nodes are removed from the graph.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants