Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE-7 Pie chart

Public visualization

ICE-7 Pie chart

0 stars2🌍 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

Comments

Sign in to join the discussion.

MIT Licensed