Fork of Pie Chart
✓ Published2🌍 Public
This example presents a pie chart of 2022 U.S. auto sales by brand, showing the proportional market share of each manufacturer. It loads CSV data from a GitHub gist using `d3.csv` asynchronously, then uses `d3.pie` and `d3.arc` to generate the pie segments in an SVG. A legend on the right displays each brand’s name and its sales total in thousands, formatted with `d3.format`. Colors are assigned via `d3.scaleOrdinal` with an explicit range of hex values.
AI-generated descriptionMIT Licensed