If I want to display a text animation from number X to number Y, where the animation goes X, X+1, X+2, ..., Y-1, Y in a certain number of seconds, what would be the best way to do this in d3?
I think I need to use a tweening method, but I can't seem to get it to work. I've tried modifying
this, but can't seem to get it working.
Let's say I have: var num = d3.select("body").append("text").text(1000); Can I get that to increment to, say, 5000 one by one over a period of say 10 seconds?
Many thanks in advance, all.