Fork of D3 Pie Chart - 11641166
✓ Published0🌍 Public
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 descriptionA demonstration of how to start using D3 version 6.
MIT Licensed