🌍 Public
Viewing a saved revision (read-only)
0861ad73205a43c0a92bdb993fbd9bae
Fork of Fork of Fork of ICE7 Pie Chart
This pie chart visualizes the total runs scored by ten top cricketers, with each slice’s arc length proportional to the player’s run count and a legend listing names alongside formatted values. The chart uses D3 v5’s `pie` and `arc` generators to compute slice geometries, `scaleOrdinal` with `schemeCategory10` for colors, and loads data from a local JSON file via `d3.json`. SVG paths and text elements render the chart and legend, while `d3.format` applies compact number formatting to displayed run totals.
AI-generated description