Skip to main content
100%

Fork of Pie Chart

✓ Published2🌍 Public
Aaashrithd4
Last edited Mar 26, 2022
Created on Mar 26, 2022
Forked from Pie Chart

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 description
MIT Licensed

Similar vizzes