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 25, 2023
Created on Mar 25, 2023

This example shows the medal counts of the top 10 countries from the 2020 Summer Olympics as a pie chart, with a legend listing each country and its total medal count. The chart is rendered as an SVG using D3 v7, with the pie layout (`d3.pie`) and arc generator (`d3.arc`) creating the segments, while `d3.scaleOrdinal` with `schemeTableau10` assigns colors. Country and medal data are loaded from a CSV file, sliced to the top 10, and displayed with mouseover logging of values.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed