D3.js
D3.js is an open-source JavaScript library for binding data to documents and creating dynamic, interactive visualizations in web browsers.
D3.js in Action, Third Edition
D3.js is a JavaScript library for binding data to documents and creating interactive, customizable visualizations in web browsers.
- How it is used
- Supports custom, interactive web visualizations when predefined charts offer too little control.
- How deep it goes
- Works through setup, DOM manipulation, data binding, scales, and framework integration; leaves substantial data cleaning outside its scope.
- Examples
- Uses a survey bar chart, a data-bound HTML color legend, and a React scatterplot.
- What you can do after
- Build it from scratch: assemble data-driven browser graphics and interactions, or apply D3 calculations while React renders the elements.
Build Financial Software with Generative AI (From Scratch)
D3.js is a JavaScript library for binding data to documents and creating dynamic, interactive data visualizations.
- How it is used
- Uses D3.js to build an interactive bar chart and display API results in a web page.
- How deep it goes
- Works through chart refinements and an API-backed list, but does not develop D3.js internals.
- Examples
- Shows a five-value bar chart with labels and hover behavior, plus a health-status list populated from an API.
- What you can do after
- Apply it via D3.js to render a chart or API results, then check generated code, endpoint configuration, and browser access.
Read how Build Financial Software with Generative AI (From Scratch) explains D3.js →
Everyday Data Visualization
D3.js is a free, open-source JavaScript library for producing dynamic, data-driven documents and visualizations in web browsers.
- How it is used
- Produces dynamic, data-driven visualizations in web browsers through JavaScript and web standards.
- How deep it goes
- Demonstrates a basic bar chart and core technologies, but defers coding instruction and detailed implementation.
- Examples
- Uses fruit data, a basic bar chart, and web visualizations such as those published by The New York Times.
- What you can do after
- Build a basic browser bar chart with D3.js using approximately 50 lines of code.
Related concepts
- JavaScriptuses · JavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
- SVGuses · SVG (Scalable Vector Graphics) is an XML-based standard and markup language for describing scalable two-dimensional vector graphics.
- CSSuses · CSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- HTMLuses · HTML is the standard markup language for structuring content and elements in documents on the web.
- selection.attr()uses · A D3 selection method that gets or sets attributes on elements in a selection, optionally deriving values from bound data.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


