Canvas Donut
✓ Published0🌍 Public
Mmbostock
Last edited Jul 21, 2019
Created on Dec 29, 2015
A donut chart displays the population distribution across seven age groups, with each segment labeled by its age range. The visualization renders to a Canvas element using d3-shape’s `d3.arc` for the donut and label arcs, and `d3.pie` to compute the angles from tab-separated data loaded via `d3.requestTsv`. Each slice is filled with a distinct color, separated by white strokes, and age labels are positioned using `labelArc.centroid`. Data comes from the included `data.tsv` file.
AI-generated descriptionA minimalist donut chart rendered to Canvas using d3-shape.
gpl-3.0 Licensed