Fork of ICE - 7 Pie Chart Maanas Katta
✓ Published0🌍 Public
This pie chart visualizes the top 10 countries by deaths in 2020 attributed to air pollution, with each slice sized by the Time value and labeled in thousands. A legend on the right maps slice colors to countries and their corresponding death counts. The visualization uses d3.pie and d3.arc to generate the donut-shaped segments and section labels via arc.centroid, while d3.scaleOrdinal assigns categorical colors. Data is loaded asynchronously from a CSV file using d3.csv, and the SVG canvas is manipulated directly with d3 selections, with text formatting applied via d3.format.
AI-generated descriptionMIT Licensed