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

Nice; animated transitions are great for maintaining continuity when data is changing. Handling changes in the y-scale can be another source of distraction, so it's nice if you're able to fix the domain (as [0,1] in your example).

In January, I wrote a tutorial on how to implement this sort of real-time graph in D3.js, using transform transitions. (Don't get distracted by the top example; it's intentionally wonky.)

http://bost.ocks.org/mike/path/



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

Search: