ICE - 7 Pie
✓ Published0🌍 Public
This example shows the top 10 cricketers by career runs in a pie chart, with each slice labeled with the run count in thousands and accompanied by a legend listing player names and values. The visualization uses D3 v5 within a React framework, fetching data from a CSV via `d3.csv` and rendering SVG paths with `d3.pie`, `d3.arc`, and a `scaleOrdinal` color scale. Text labels are positioned using arc centroids, and the legend is built manually with appended rectangles and text elements.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed