All examples By author By category About

cool-Blue

Transitioning a line chart, but with data bound to the path element

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().