Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE - 7 Pie Chart

Public visualization

Viewing a saved revision (read-only)

f8c06760918d433096c576be89d921ac

ICE - 7 Pie Chart

0 stars0🌍 Public
PPrasanth Damarla
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from HTML Starter

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