Skip to main content
100%

Fork of piechart

✓ Published0🌍 Public
Kkirankumari26guj@gmail.com
Last edited Mar 25, 2025
Created on Mar 25, 2025
Forked from HTML Starter

This fork of a pie chart visualizes Tokyo 2020 gold medal counts by country, displaying each nation’s share as a percentage label inside its slice. The chart loads CSV data via `d3.csv`, computes percentages, and renders SVG paths using `d3.pie()` and `d3.arc()`, with `d3.scaleOrdinal(d3.schemeCategory10)` for colors. A legend lists countries with their percentage values, while text elements with `tspan` lines show country names and percentages on each slice.

AI-generated description
MIT Licensed

Similar vizzes