Idiomatic version of an animated line chart with added animated "y-value and y-axis only" initial entry.
Instead of passing the line data into a d3.svg.line()
object explicitly, the data is first bound to the path and then passed to the d3.svg.line()
object implicitly via selection.attr()
.
https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.11/d3.min.js