🌍 Public
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 descriptionMIT Licensed
Comments
Sign in to join the discussion.