Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nice use of d3 that really adds value. I'll use this as an example next time I do time series training at work.

Could I ask what you've used to make the animation repeat? From a quick search I noticed you aren't using setInterval() or d3.timer().

Are you just calling redraw as quickly as the CPU runs the code or am I missing something?



          .transition()
            .duration(dur)
            .ease("linear")
            .attr("transform", "translate(" + x2(-1) + ",0)")
            .each('end', plot1Anim);
the thing gets called when the transition ends.


Ah yes, thank you!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: