June 2026
Intermediate to advanced
582 pages
16h 16m
English
Classic chart types are created in D3 by generating SVG or Canvas with the d3-shape module: а complete library for drawing geometric shapes commonly used in data visualizations. This is the module you need to create line charts, area charts, pie/donut charts, and radial charts.
D3 provides eight shape generators. They return functions that either generate SVG strings, which can be bound to graphical elements in your page, or run Canvas commands that can render the shapes in an HTML Canvas context, based on the data you provide. These generators are also used to draw preconfigured symbols and smooth spline curves for hierarchical linked structures.
This chapter will cover the shape generator functions used to ...
Read now
Unlock full access