Skip to main content
100%

Fork of ICE 7 Pie chart

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

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 description
MIT Licensed

Similar vizzes