🌍 Public
Viewing a saved revision (read-only)
f8c06760918d433096c576be89d921ac
ICE - 7 Pie Chart
This example visualizes the cost of various products as a pie chart, with each slice labeled and accompanied by a legend. Built with D3 v5, it loads cost data from a CSV file hosted on GitHub. The chart’s slices are generated using `d3.pie` and `d3.arc`, with each slice's percentage label positioned via the arc's centroid. A separate legend group displays a color swatch, product name, and cost value for each item.
AI-generated description