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);
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?