Is there a way to may a d3 force layout continually move even after it has "cooled"? I have been using this but the movement is very minor:
svg.on('mousemove', function() {
force.start();
});
I actually figured it out on my own with this:
setInterval(function(){force.alpha(0.1);},250);
That's probably not the most performant on a large layout but it provides a nice continual drift on my force layout of 20 nodes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With