🌍 Public
Viewing a saved revision (read-only)
62df4083107a4f5ba6e51231a4bce3ad
Fork of Pie Chart
This example shows 2022 US auto sales by brand as a pie chart, with each slice colored and accompanied by legends displaying brand names, percentage of total sales, and sales in thousands. It uses d3.pie and d3.arc to generate the SVG paths, d3.scaleOrdinal for color assignment, and d3.csv to load data from a gist. Percentages and formatted sales values are rendered via d3.format alongside the chart’s interactive legend.
AI-generated description