You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct, if you look closely to the documentation you will read this entry on staticGraph:
staticGraphboolean when setting this value to true the graph will be completely static, thus all forces and drag events upon nodes will be disabled. Plus, if this value is true the nodes will be rendered with the provided x and y coordinates, no coordinates will be calculated by react-d3-graph.
So if you do not provide initial values for nodes and links you will get a squeezed graph. Nevertheless, when I was confirming this behavior I found that props x and y on nodes and x1, x2, x3 and x4 on links are not being properly handled in rd3g, so I will tag this as a bug.
PS. A simple temporal workaround would be to make the graph static only after you see that d3 calculated nodes and links positions.
If I set static Graph, then all lines and nodes have zero at x,y,z propertys that makes picture squeeze.
The text was updated successfully, but these errors were encountered: