Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 Pie Chart - 11641166

Public visualization

Fork of D3 Pie Chart - 11641166

0 stars0🌍 Public
JJasvitha Allamsetty
Last edited Mar 26, 2023
Created on Mar 26, 2023

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 description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed