ICE 7 Pie chart
✓ Published0🌍 Public
This pie chart displays the top 10 countries by deaths in 2020 attributed to air pollution, with each slice labeled in thousands and a corresponding legend. The data is loaded from a CSV file using `d3.csv`, and the pie layout is computed with `d3.pie`. Slices are drawn as SVG paths via `d3.arc`, with colors assigned by `d3.scaleOrdinal`. Text labels and legend entries are positioned using the arc centroid method, and numbers are formatted with `d3.format`. The chart is rendered entirely in SVG within a D3 v5 environment.
AI-generated descriptionMIT Licensed