Skip to main content
100%

ICE 7 Pie chart

✓ Published0🌍 Public
SsreepavanKothapalli
Last edited Mar 30, 2023
Created on Mar 29, 2023
Forked from ICE 7 Pie chart

This pie chart displays the top 10 countries by population in 2022, with each slice labeled with its population value and accompanied by a legend showing the country name and corresponding figure. The visualization uses D3 v5’s `pie`, `arc`, and `scaleOrdinal` functions to compute slice geometries and assign colors from a hardcoded array. Data is loaded asynchronously from a CSV source via D3’s `csv` method. The chart is rendered as SVG, with a centered title and a legend offset to the right, both styled inline.

AI-generated description
MIT Licensed

Similar vizzes