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
The only effect that the old force layout.size had was to set the attraction point for the "gravity" force to be [width / 2, height / 2]. This has been replaced by the positioning forces d3.forceX and d3.forceY, and you can set the focus coordinates of these forces using x.x and y.y respectively as documented in the README.
We used this function to handle window resize in v3 (so the graph shifts into view)
I had a look through the CHANGES document but couldn't find any information relating to why this was removed/how to achieve something similar in v4.
The text was updated successfully, but these errors were encountered: