Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
NNaveenrajaYalagandula
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from Pie Chart

This visualization presents 2022 US auto sales by brand as a pie chart built with D3 v5, using SVG for rendering. Each slice’s size encodes the brand’s year-to-date sales, with a color-coded legend showing brand names and formatted sales values (in thousands). The code loads CSV data via `d3.csv` from a GitHub gist, computes the pie layout with `d3.pie()`, draws arcs using `d3.arc()`, and assigns categorical colors via `d3.scaleOrdinal`. Sales values are formatted using D3’s `format` helper for the legend.

AI-generated description
MIT Licensed

Similar vizzes