Skip to Content
Learn D3.js - Second Edition
book

Learn D3.js - Second Edition

by Helder Da Rocha
June 2026
Intermediate to advanced
757 pages
11h 16m
English
Packt Publishing

Overview

Master data visualization with D3.js v7 using modern web standards and real-world projects to build interactive charts, maps, and visual narratives

Key Features

  • Build dynamic, data-driven visualizations using D3.js v7 and ES2015+
  • Create bar, scatter, and network charts, geographic maps, and more
  • Learn through step-by-step tutorials backed by hundreds of downloadable examples
  • Purchase of the print or Kindle book includes a free PDF eBook

Book Description

Learn D3.js, Second Edition, is a fully updated guide to building interactive, standards-compliant web visualizations using D3.js v7 and modern JavaScript. Whether you're a developer, designer, data journalist, or analyst, this book will help you master the core techniques for transforming data into compelling, meaningful visuals.

Starting with fundamentals like selections, data binding, and SVG, the book progressively covers scales, axes, animations, hierarchical data, and geographical maps. Each chapter includes short examples and a full hands-on project with downloadable code you can run, modify, and use in your own work.

This new edition introduces improved chapter structure, updated code samples using ES2015 standards, and better formatting for readability. There’s also a dedicated chapter that focuses on integrating D3 with modern frameworks like React and Vue, along with performance, accessibility, and deployment strategies. For those migrating from older versions of D3, a detailed appendix is included at the end.

With thoughtful pedagogy and a practical approach, this book remains one of the most thorough and respected resources for learning D3.js and help you truly leverage data visualisation.

What you will learn

  • Bind data to DOM elements and apply transitions and styles
  • Build bar, line, pie, scatter, tree, and network charts
  • Create animated, interactive behaviours with zoom, drag, and tooltips
  • Visualize hierarchical data, flows, and maps using D3 layouts and projections
  • Use D3 with HTML5 Canvas for high-performance rendering
  • Develop accessible and responsive D3 apps for all screen sizes
  • Integrate D3 with frameworks like React and Vue
  • Migrate older D3 codebases to version 7

Who this book is for

This book is for web developers, data journalists, designers, analysts, and anyone who wants to create interactive, web-based data visualizations. A basic understanding of HTML, CSS, and JavaScript is recommended. No prior knowledge of SVG or D3 is required.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

D3 for the Impatient

D3 for the Impatient

Philipp K. Janert
D3.js in Action, Third Edition

D3.js in Action, Third Edition

Elijah Meeks, Anne-Marie Dufour

Publisher Resources

ISBN: 9781837636860