Fork of Pie Chart
✓ Published0🌍 Public
This example displays a pie chart of 2022 U.S. auto sales by brand, with each slice colored gold and accompanied by a legend showing the brand name, its percentage of total sales, and its sales volume in thousands. The code loads CSV data from a GitHub gist using `d3.csv`, computes the pie layout with `d3.pie`, and draws arcs with `d3.arc`. Legends are rendered using SVG elements, with colors assigned via `d3.scaleOrdinal` and numeric formatting via `d3.format`.
AI-generated descriptionMIT Licensed