Skip to main content
100%

Fork of Fork of Pie Chart

✓ Published0🌍 Public
KKolliTeja
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from Fork of Pie Chart

This example visualizes 2022 US auto sales by brand using a pie chart, with each slice's fill color and legend label derived from the sales data. The chart is rendered as SVG, with pie segments generated by the `d3.pie` and `d3.arc` functions, while `d3.scaleOrdinal` maps colors to sales values. Legend entries include each brand name and its sales total formatted with `d3.format`. Data is loaded asynchronously from a CSV file via a custom `getData` module using D3 v5's `d3.csv`.

AI-generated description
MIT Licensed

Similar vizzes