Skip to content Skip to sidebar Skip to footer

Speed Up D3 Force Layout With Many Nodes And Links

I wanted to produce a visualization that contains a good deal of nodes with the d3 force layout (more than 500 hundred nodes). While it is working correctly with as much as 200 hun

Solution 1:

One way of doing this would be to handle not every tick event, but only a fraction of them, e.g. skipping a specified number or dynamically adapting the number of events depending on other considerations.

If you want smooth movements, add a transition between the positions set in the handled tick events. You can of course combine these ideas as well and skip events while the transition is running, handling the first one after it has been completed.


Post a Comment for "Speed Up D3 Force Layout With Many Nodes And Links"