Skip to main content
100%

ICE-7 Pie chart

✓ Published2🌍 Public
LLG0498
Last edited Mar 23, 2022
Created on Mar 22, 2022
Forked from HTML Starter

This example shows a pie chart of the most runs scored by six cricket players, using data from the CSV file `mostruns.csv`. Each slice is colored by player name via a `d3.scaleOrdinal` and labeled with the player’s name. The chart is rendered as SVG using `d3.pie` to compute angles, `d3.arc` to generate paths, and `d3.csv` to load the data, with labels positioned via the arc centroid method.

AI-generated description
MIT Licensed

Similar vizzes