D3.js
JavaScriptWorking with data
The most powerful data visualization library for the web.
What it does
D3 (Data-Driven Documents) lets you bind data to SVG elements and create any chart or visualization imaginable. It's extremely flexible but also has a steep learning curve.
When to use it
Use this when you need a completely custom, data-driven visualization that Chart.js can't handle.
Real example
You want a custom animated bubble chart where bubble size represents revenue and color represents industry. Prompt: 'Use D3.js to create an SVG bubble chart. Bind the companies array to circle elements. Map revenue to radius using scaleSqrt, map industry to fill color using scaleOrdinal. Add a tooltip that shows company name on hover.'
Good to know
D3 is low-level — it's more like a toolkit than a chart library. For standard charts, Chart.js is much easier.
Alternatives
Install
Use cases
Language
JavaScriptCategory
Working with data