Pie Multiples with Nesting
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Oct 22, 2011
Four small donut charts display the distribution of airline carriers at four US airports. Each chart represents a single airport, with arcs sized by passenger count and colored by carrier. The visualization loads CSV data from `flights.csv` and groups entries by airport using `d3.nest`. The `d3.layout.pie` computes arc angles, while `d3.svg.arc` generates the SVG paths, with a rotated label added for larger segments.
AI-generated descriptionAn example of multiple pie (donut) charts created with D3. The data is represented as a tabular array of objects; each row in the table is mapped to an arc, and rows are grouped into pie charts using d3.nest.
gpl-3.0 Licensed