Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stabilising Dynamic Graphs #237

Open
AndrewMohawk opened this issue Nov 18, 2018 · 0 comments
Open

Stabilising Dynamic Graphs #237

AndrewMohawk opened this issue Nov 18, 2018 · 0 comments

Comments

@AndrewMohawk
Copy link

Heya,

First off thanks for the library, its really awesome.

I am facing more a logistical problem when using the library. What I want to do is dynamically create graphs based on user input, but a lot of the time these graphs will have 1-to-many relationships with one central node and many nodes all connecting only to that.

If there are only a few it works fine, but if there are a number of them the graph wont 'stabilise' as it seems a few nodes move and also end up moving other nodes around it. I've looked at other examples and reviewed the options given here and on other parts of the Internet, and it seems that the way to solve this is to change some of the graph settings including the springLength. However because my graph is dynamically generated if I set this to something large to account for bigger groupings, the smaller groupings look insane.

Is there a way to make some of these values dynamic to account for the different spring lengths or be able to set spring lengths for just certain parts of the graph? I have also played around with pausing the rendering, but I need the graph dynamic so people can move and explore the data

Thank you!

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

No branches or pull requests

1 participant