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

Is there a way to make the graph render consistently? #193

Closed
ivelichkovich opened this issue Apr 10, 2019 · 3 comments
Closed

Is there a way to make the graph render consistently? #193

ivelichkovich opened this issue Apr 10, 2019 · 3 comments

Comments

@ivelichkovich
Copy link

Is your feature request related to a problem? Please describe.
Every time the graph is rendered it looks different. I can drag it the way I like but I would like it to render the same every time.

Describe the solution you'd like
A flag where you can make it render the same every time to get a consistent look.

Describe your use case
I'm making a graph of network traffic. I would like to have the entrypoint be the left most node and have each child farther to the right.

@ivelichkovich
Copy link
Author

Nevermind found the solution in the documentation

@ivelichkovich
Copy link
Author

So I need to use static-graph with node x and y coordinates, the documentation doesn't seem to say how to set node x and y coordinates

@danielcaldas
Copy link
Owner

staticGraph (boolean = false) when setting this value to true the graph will be completely static, thus all forces and drag events upon nodes will produce not effect. Note that, if this value is true the nodes will be rendered with the initial provided x and y coordinates (links positions will be automatically set from the given nodes positions by rd3g), no coordinates will be calculated by rd3g or subjacent d3 modules.

So, within node payload make sure you provide values for x and y.

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

2 participants