ICE 7 Pie Chart
✓ Published0🌍 Public
This example shows the top 10 countries and their total medal counts from the 2016 Olympics as a pie chart, with a legend listing each country and its numerical total. The chart is rendered as SVG using D3 v5, with the pie layout and arc generator creating the segments from a CSV dataset fetched from a GitHub gist. A scaleOrdinal maps the total values to a fixed array of section colors, and legend entries are built from the same pie data, formatting values with d3.format.
AI-generated descriptionMIT Licensed