Fork of ICE 7 Pie chart
✓ Published0🌍 Public
This visualization shows the top 10 countries by population in 2022 as a pie chart, with each slice labeled with its population value and a corresponding color-coded legend listing country names and values. Using D3 v5, the code fetches CSV data via `d3.csv`, converts it with `d3.pie`, and renders SVG paths with `d3.arc` and `scaleOrdinal` for slice colors. Text labels and legend items are appended dynamically, while the chart is centered within an SVG canvas.
AI-generated descriptionMIT Licensed