D3 Tips and Tricks: Interactive Data Visualization
Gain insights into D3.js, and learn to create and style interactive visuals. Delve into line graphs, bar charts, histograms, and more to master data visualization with D3.
I have a passion for knowledge and I realise that part of the responsibility of gathering knowledge is being able to advance the state of the human condition in some way. My aims in writing books are to play with software, achieve personal goals and try something new for fun. It also helps that I think Open Source, technology, the visual representation of data and information rock in serious ways. The books that I write are a mechanism to support my own learning, so the way I explain things is focused on trying to impart understanding in a simple but functional way. By extension this makes the process directly translatable to providing content for others learning. I'm totally in awe of the Open Source community that has made this type of work possible.
Join 3.1 million developers at
What You'll Learn
- Set up a D3 workflow using HTML, CSS, JavaScript, and a web server
- Load and parse CSV/JSON data with promises, d3.timeParse, and numeric conversion
- Build line charts with SVG, margins, scales/domains, axes, labels, and titles
- Customize axes with tick intervals, tick formatting, rotated labels, and gridlines
- Draw and style SVG shapes and paths using attributes, transforms, and CSS rules
- Create bar charts and histograms using scaleBand, scaleLinear, and d3.bin
- Implement interactivity with tooltips, transitions, filtering, and HTML input controls
Learning Roadmap
1.
Introduction
Introduction
2.
Starting with a Simple Graph
Starting with a Simple Graph
3.
Things We Can Do with the Simple Graph
Things We Can Do with the Simple Graph
21 Lessons
21 Lessons
4.
Elements, Attributes, and Styles
Elements, Attributes, and Styles
17 Lessons
17 Lessons
5.
Bar Charts and Histograms
Bar Charts and Histograms
8 Lessons
8 Lessons
6.
Tree Diagrams
Tree Diagrams
15 Lessons
15 Lessons
7.
Sankey Diagrams
Sankey Diagrams
9 Lessons
9 Lessons
8.
Bullet Charts
Bullet Charts
9 Lessons
9 Lessons
9.
Mapping with D3.js
Mapping with D3.js
9 Lessons
9 Lessons
10.
Assorted Tips and Tricks
Assorted Tips and Tricks
25 Lessons
25 Lessons
11.
D3.js Examples Explained
D3.js Examples Explained
11 Lessons
11 Lessons
Malcolm Maclean
I am a technologist that enjoys learning, discovery and passing on information.
Trusted by 3.1 million developers working at companies
Anthony Walker
@_webarchitect_
Evan Dunbar
ML Engineer
Software Developer
Carlos Matias La Borde
Souvik Kundu
Front-end Developer
Vinay Krishnaiah
Software Developer
Built for 10x Developers












Free Resources