Skip to content

graph scrolls left after loading multiple nodes. #108

Answered by jason-rietzke
mssayari asked this question in Q&A
Discussion options

You must be logged in to vote

I believe this is an interesting question in general so I converted it to a discussion again for others to discover 🙂

This behaviour is caused by the collision and repelling forces between the nodes. Especially in the beginning stages when all nodes are generated at the same default coordinates (0, 0) this can often result in a rather uncontrolled "explosion" of the graph which can also cause a shift in random directions. This setup is very volatile an slight changes to the start configuration can have large effects on the movements of all nodes.

In cases like yours where you wish to have a rather finite control of the outcome, there are a few strategies you can consider.

  1. for starters I …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@jason-rietzke
Comment options

@mssayari
Comment options

Answer selected by mssayari
Comment options

You must be logged in to vote
1 reply
@jason-rietzke
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #107 on May 22, 2023 10:29.