I have a d3 force layout that I sometimes resume when interacting with the user in order to move the nodes a bit. Unfortunately, this has an undesirable (for me) effect of bouncing / pulsing all nodes every time it resumes. It is as if gravity temporarily increased by a split second, pulling all the nodes inward.
To recreate, open this page http://bl.ocks.org/mbostock/raw/4062045/ and launch it force.resume()in the console. You can see this effect on any examples of Mike Bostock's power measures.
Is there any way to prevent this? I tried to set all the nodes for a while, until gravity returns to normal, but it does not work.
source
share