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 chart and display API results in a web page.
- How deep it goes
- Demonstrates incremental chart enhancements and a data-binding chain for an API-backed list.
- Examples
- Shows a labeled bar chart with hover effects and a health-status list populated from an API.
- What you can do after
- Applies D3.js through generated and customized pages for charts and API results.
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.
What to know first
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- HTMLHTML is the standard markup language for structuring content and elements in documents on the web.
- serverA server is a computer system or software process that provides data, resources, or services to other systems, typically by responding to requests.
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.
Questions about D3.js
What is D3.js?
D3.js is an open-source JavaScript library for binding data to documents and creating dynamic, interactive visualizations in web browsers.
Which Manning books explain D3.js?
D3.js in Action, Third Edition, Build Financial Software with Generative AI (From Scratch) and Everyday Data Visualization.
What should I know before learning D3.js?
Manning books that teach D3.js usually introduce CSS, HTML and server first.
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.


