Skip to main content
100%

Pie chart

✓ Published2🌍 Public
Ssaivinay143
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from ICE 7 Pie chart

This pie chart displays the top 10 most populous countries in 2022, with each slice labeled by population count and a color-coded legend listing country names and values. The visualization uses D3 v5’s `pie` and `arc` generators to compute and draw SVG paths, while `scaleOrdinal` assigns colors from a hardcoded array. Population data is loaded from a CSV via `d3.csv`, formatted with `d3.format`, and rendered on a yellow background with text labels positioned using `arc.centroid`.

AI-generated description
MIT Licensed

Similar vizzes