Skip to main content
100%

Pie Chart Creation ICE7

✓ Published0🌍 Public
Aavvarijayakrishna99@gmail.com
Last edited Mar 13, 2023
Created on Mar 13, 2023
Forked from ICE - 7 Pie Chart

This example visualizes item sales and their percentages as a pie chart, with a legend displaying each item and its corresponding share. The chart uses D3 v5 APIs, including `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate and color the chart segments. Data is fetched from a remote CSV file, and total sales are calculated to render the percentage labels. The visualization is rendered as SVG, with a legend on the right side that pairs a color swatch with each item’s name and percentage value.

AI-generated description
MIT Licensed

Similar vizzes