D3.js

D3 18,089 (Data-Driven Documents) does not draw charts for you. It binds data to DOM elements, usually SVG's SVG shapes, and supplies the math that turns numbers into positions, colors and paths: scales, axes, shape generators, layouts, projections and physics. You design the chart, and when the data outgrows the DOM, the same math drives a Canvas 2D canvas (Canvas Rendering). BookNest's six books are the running example, with sample sales data invented for this chapter (Keyed Joins).

What you will learn

Sections