The JavaScript library for bespoke data visualization
open sourceISCfree
D3 (or D3.js) is a free, open source JavaScript library for visualizing data with web standards (SVG, Canvas and HTML). It isn't a charting library with ready-made charts: it's a low-level toolbox of primitives (scales, shapes, axes, layouts, force simulations, geographic projections, hierarchies, transitions, zooming and brushing, CSV parsing) composed into custom, interactive graphics, and it's the building block of many higher-level chart libraries. Each module can be used on its own. Mike Bostock created it in 2011, and he and Philippe Rivière maintain it at Observable, beside Observable Plot.
Problems it solves
- build a custom interactive data visualization in the browser that chart libraries can't do
- draw an interactive map or force-directed network graph on a web page
- bind data to SVG elements and animate them when the data changes
Features
- scales, axes and shapes for SVG and Canvas
- force simulations for network graphs
- geographic projections and paths
- hierarchy layouts: tree, treemap, pack, partition
- selections and data joins with transitions
- zoom, drag and brush interaction
- modules usable independently
Alternatives
The same job
These do what D3 does.
- Apache ECharts Open source JavaScript library for interactive charts and visualization
- Chart.js Simple yet flexible JavaScript charting for the web
- Bokeh Interactive data visualization for Python in the browser
- Vega Visualization grammar: describe interactive charts in JSON and render them to Canvas or SVG
- G2 AntV's grammar-of-graphics JavaScript library for building charts and dashboards on Canvas, SVG or WebGL
- sigma.js A WebGL JavaScript library for drawing interactive graphs of hundreds of thousands of nodes and edges
