Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Sreekar pie Ice 7

Public visualization

Sreekar pie Ice 7

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed