Viz_PieChartforQuestion1
✓ Published1🌍 Public
This pie chart visualizes air pollution deaths across countries, displaying each country’s share as a percentage of the total deaths. The code uses D3 v5 APIs including `d3.pie`, `d3.arc`, `d3.scaleOrdinal`, and `d3.csv`, rendering the chart as an SVG. Death values are loaded from a remote CSV, converted to numbers, and used to compute slices and legend labels, with tooltip-free text labels placed via `arc.centroid()`. A legend to the right shows country names and death counts formatted in thousands.
AI-generated descriptionMIT Licensed