Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
Bbindhureddy98
Last edited Mar 26, 2022
Created on Mar 26, 2022
Forked from Pie Chart

This example visualizes 2022 US auto sales by brand as a pie chart, showing each brand’s year-to-date sales as a slice of a donut. The chart uses a categorical color scale to distinguish brands and includes a legend with each brand’s name and sales value in thousands. Built with D3 v5, the code loads CSV data from a GitHub gist using `d3.csv`, then constructs the pie with `d3.pie` and `d3.arc`, and renders the SVG paths and legend using `d3.select` and `d3.scaleOrdinal`.

AI-generated description
MIT Licensed

Similar vizzes