Skip to main content
100%

Fork of Fork of Fork of ICE7 Pie Chart

✓ Published0🌍 Public
ZZhaoy-D
Last edited Jan 25, 2023
Created on Jan 25, 2023

This example renders a pie chart of cricket players' runs using D3 v5 with SVG. It loads data from a JSON file and uses `d3.pie` and `d3.arc` to generate the segments, with `d3.scaleOrdinal` applying a categorical color scheme. The chart displays player names and run totals in a legend, using `d3.format` to abbreviate large numbers. The inner radius is set to zero, producing a standard pie rather than a donut.

AI-generated description
MIT Licensed

Similar vizzes