Skip to main content
100%

ICE - 7 Pie

✓ Published0🌍 Public
TTharun2022
Last edited Apr 16, 2022
Created on Mar 27, 2022
Forked from HTML Starter

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes