🌍 Public
Viewing a saved revision (read-only)
fbc8a442e6794aafaa7f842dfae06508
Fork of Pie Chart
This fork of a pie chart visualizes 2022 US auto sales by brand, using a dataset loaded from a GitHub gist via the `d3.csv` method. The chart renders as an SVG with colored segments generated by `d3.pie` and `d3.arc`, while a legend lists each brand with its percentage and total sales in thousands. Colors are assigned using `d3.scaleOrdinal`, and numeric formatting relies on `d3.format`. The code explicitly imports functions from D3 v5 and builds the visualization through a custom `getData` async helper.
AI-generated description