Question1
✓ Published0🌍 Public
This example shows the distribution of Eurovision Song Contest winners by country from 2000 to 2022, using a pie chart with a legend displaying each country’s win count. The visualization loads CSV data from a GitHub gist, counts wins per country, and renders the chart with D3 v7’s `d3.pie` and `d3.arc` generators. SVG paths are colored via `d3.scaleOrdinal` with the `schemeCategory10` palette, while labels are positioned at arc centroids using `arc.centroid`. A legend is appended as SVG groups with rectangles and text.
AI-generated descriptionMIT Licensed