🌍 Public
Viewing a saved revision (read-only)
51d637e921c34797b107409234233c2d
ICE-7 Pie Chart
This example displays a pie chart ranking the top nine foods by protein content, distinguishing between vegetarian and non-vegetarian options. It uses D3 v5 APIs (`d3.pie`, `d3.arc`, `d3.scaleOrdinal`) to generate SVG paths, with a legend showing food names and protein values in grams. The data is loaded asynchronously from a CSV file via a Gist URL using D3's `csv` import, and formatted with `d3.format`.
AI-generated descriptionA demonstration of how to start using D3 version 6.