--
You received this message because you are subscribed to the Google Groups "d3-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to d3-js+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
d3.timer uses requestAninationFrame which is much more reliable than setTimeout.
if your calculations take longer than the timeout your visualization will start to lag and stutter and possibly not recover. using d3.timer or requestAnimationFrame will keep the browser at a usable FPS.
Also when you lose focus of your page setTimeout will keep running hogging the users resources unnecessarily.
just use d3.timer, its got a nicer interface and will work much better.
--