Skip to main content
100%

Fork of Fork of Fork of ICE7 Pie Chart

✓ Published0🌍 Public
Eeravellisaimeghana
Last edited Mar 29, 2022
Created on Mar 29, 2022

This example visualizes the top ten cricketers and their career runs as a pie chart, with each slice sized proportionally to the player’s total runs and colored using the d3.schemeCategory10 scale. A legend on the right lists each player’s name and formatted run total. The code loads data from a JSON file using d3.json, then employs d3.pie and d3.arc to compute and draw the SVG segments, while d3.scaleOrdinal assigns colors and d3.format displays the numerical labels.

AI-generated description
MIT Licensed

Similar vizzes