🌍 Public
Viewing a saved revision (read-only)
8523f5e103594d4b8af7943f8397f12b
Fork of D3 Pie Chart - 11641166
This example visualizes the top 10 countries from the 2020 Summer Olympics dataset by total medals using a pie chart rendered in SVG. Each slice’s fill color and the labels are mapped from the medal totals via `d3.pie`, `d3.arc`, `d3.scaleOrdinal`, and `schemeTableau10`. A legend lists each country with a color swatch and medal count. Data is loaded asynchronously from a CSV using `d3.csv`, sorted descending, and the chart updates with mouseover logging.
AI-generated descriptionA demonstration of how to start using D3 version 6.