Skip to main content
100%

Fork of ICE - 7 Pie Chart Maanas Katta

✓ Published1🌍 Public
Ppravallikayaram12
Last edited Mar 27, 2022
Created on Mar 27, 2022

A pie chart displays the top 10 countries by air pollution-related deaths in 2020, using categorical colors and labels showing death counts in thousands. Data is loaded from a CSV via `d3.csv`, parsed with `d3.pie`, and rendered as SVG paths generated by `d3.arc`. The visualization includes a legend with colored rectangles, country names, and values, while labels are positioned using `arc.centroid`. The code relies on D3 v5 selection and scale APIs, with colors assigned through `d3.scaleOrdinal`.

AI-generated description
MIT Licensed

Similar vizzes