Skip to main content
100%

Fork of Pie Chart

✓ Published1🌍 Public
KKolliTeja
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from Pie Chart

This pie chart displays 2022 U.S. auto sales by brand, with each slice sized by year-to-date sales and a corresponding legend showing brand names and sales totals in thousands. The visualization uses d3.pie and d3.arc to generate SVG paths, with d3.scaleOrdinal assigning colors to slices. Data loads asynchronously via d3.csv from a GitHub gist, and the code formats sales values using d3.format. A legend is built manually with SVG rectangles and text elements, while the chart itself is centered within a 960x500 viewport.

AI-generated description
MIT Licensed

Similar vizzes