Fork of Fork of Pie chart
✓ Published1🌍 Public
This example shows the top 10 countries by population in 2022 using a pie chart with a side legend. The SVG rendering uses d3.pie and d3.arc to generate colored segments, with population values labeled in thousands on each slice. A scaleOrdinal maps section colors, and the chart draws from a CSV dataset hosted on GitHub. The legend lists each country with its corresponding population value, and the page uses a light yellow background with a blue title.
AI-generated descriptionMIT Licensed