Fork of Pie Chart
✓ Published0🌍 Public
This pie chart visualizes 2022 US auto sales by brand, showing each brand’s year-to-date sales as a colored arc segment with a legend listing brand names and sales values in thousands. A sequential color scale, defined via `d3.scaleOrdinal`, maps each brand to a distinct color. The chart is rendered as SVG using `d3.pie` to compute angular segments and `d3.arc` to generate the paths, while `d3.csv` loads the population dataset from a GitHub gist. The legend and ticks are positioned manually, with sales formatted using `d3.format`.
AI-generated descriptionMIT Licensed