🌍 Public
Viewing a saved revision (read-only)
70fbf362c3c345988ad7c9bc590f8203
Fork of Fork of ICE7 Pie Chart
This pie chart displays the top ten cricketers and their total runs, with each slice’s area proportional to a player’s run count and a legend listing names and values. The code loads data from a JSON file using `d3.json`, then applies `d3.pie` and `d3.arc` to generate the SVG paths, while `d3.scaleOrdinal` with `d3.schemeCategory10` assigns slice colors. The chart renders as an SVG and includes a legend built from appended groups, rects, and text elements.
AI-generated description