Canvas Pie
✓ Published0🌍 Public
Mmbostock
Last edited Jul 21, 2019
Created on Dec 29, 2015
This example shows a minimal pie chart of U.S. population by age group, with each slice labeled directly on the canvas. The data comes from a TSV file, loaded via `d3.requestTsv`. It renders using the Canvas 2D API, with `d3.arc` and `d3.pie` from d3-shape to compute the arcs and angles. Slices are filled with distinct colors, outlined in white, and age labels are placed using the arc centroid method.
AI-generated descriptiongpl-3.0 Licensed