Skip to main content
100%

Pie Chart for Player Statics

✓ Published0🌍 Public
Ssdarsi2404@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from Fork of D3 Starter

This pie chart visualizes the distribution of runs scored by individual players, using a CSV dataset fetched from a GitHub gist. Built with D3.js v7, it renders an SVG pie chart where each slice is colored by player name and includes direct labels. The chart uses `d3.pie()` and `d3.arc()` to generate slice geometry, with a legend and a hover tooltip that displays player-specific details. A color scale (`d3.scaleOrdinal`) maps each player to a distinct category color.

AI-generated description
MIT Licensed

Similar vizzes