D3.js
Low-level building blocks for data graphics no chart library offers
What it is
D3.js was started by Mike Bostock and is now developed at Observable. What you get is a box of parts: scales that turn values into positions, functions that produce shape paths, and algorithms that work out layouts. There is no command that takes data and returns a bar chart, and in exchange any form you can sketch is possible.
Key features
- Scales and axes: Map dates, amounts and categories to position, size and colour
- Layouts: Calculates treemaps, force-directed networks and packed circles
- Geographic projections: Many ways to flatten the globe for region or route maps
- Interaction modules: Reusable dragging, zooming and brushing
Who it's for
Data journalists, information designers and frontend engineers after an unusual visual will find the study worthwhile. It expects some SVG, DOM and maths; for a standard line chart, Chart.js or Observable Plot is far quicker. If you use it with React, decide early which of the two controls the DOM. The library is open source and free.
Front-end & Site Building
- ECharts — Open-source charts for maps, networks and very large datasets
- TypeScript — Microsoft's typed superset of JavaScript
- Sass — A CSS preprocessor with variables, nesting and mixins
- SolidJS — A signals-based UI framework with React-like JSX
- Svelte — A UI framework that compiles components at build time
- Highcharts — Business-grade JavaScript charts, licensed for commercial use