Fork of Fork of Fork of ICE7 Pie Chart
✓ Published0🌍 Public
A pie chart displays the total runs scored by ten top cricketers, with each slice sized proportionally to a player's career run total and labeled in a legend with player names and formatted values. The visualization loads data from a JSON file, then uses d3.pie to compute arc segments and d3.arc with an innerRadius of zero to render full circle slices. d3.scaleOrdinal applies the category color scheme, while SVG paths and legend rectangles are generated via d3.select and data joins.
AI-generated descriptionMIT Licensed