how to control the simulation speed of d3 force layout

Viewed 4795

I am following a d3 force laytout example like this.

I want to control the speed of the dots flying to the cluster. In other words, I want some dots take more time to get to their final positions, while some dots take less time.

I tried to add a timer function to control the time of each tick, but it did not work.

this.force = d3.layout.force()
.on("tick", setTimeout(tick(d), 50));

I need help for this.

3 Answers
Related