🌍 Public
Viewing a saved revision (read-only)
91abe79dc1e4407c8daed841dc82e74e
Fork of Fork of Fork of ICE7 Pie Chart
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