Shape and Layout Generators
D3 is a data-driven data visualization library, but not a charting library. It contains no predefined chart types, but it helps you apply standards such as SVG and Canvas to create absolutely any chart that you can find in a popular charting library, without being limited in any way.
Classic chart types are created in SVG or Canvas with the d3-shape module; this is а complete library for drawing geometric shapes that are commonly used in data visualizations. This is the module you need if you want to create line charts, area charts, pie and doughnut charts, and radial charts.
Eight shape generators are provided for shapes such as lines, arcs, and areas. They return functions that receive structured data and generate ...
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