Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
Jjustvizzin
Last edited May 3, 2022
Created on May 3, 2022
Forked from Pie Chart

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 description
MIT Licensed

Similar vizzes