Skip to main content
100%

Sreekar pie Ice 7

✓ Published0🌍 Public
SSreekarveeravelly
Last edited Mar 29, 2022
Created on Mar 29, 2022
Forked from Pie Chart

This visualization shows 2022 U.S. auto sales by brand as a pie chart, with each slice colored and labeled via an interactive legend that displays both the brand name and its percentage of total sales alongside the raw sales figure in thousands. The chart is rendered using D3 v5’s `pie` and `arc` generators to compute the slice geometry, while `scaleOrdinal` assigns a fixed color palette to each brand. Data is loaded asynchronously from a CSV file via `d3.csv` and then processed to sum the YTD sales column for percentage calculations. The SVG output includes a center-aligned title and a legend positioned to the right of the pie.

AI-generated description
MIT Licensed

Similar vizzes