🌍 Public
Viewing a saved revision (read-only)
02669fb1855e4346b62cbaf2bbba6a45
Activity7_Q1
This pie chart visualizes deaths caused by air pollution across different countries, with each slice and legend entry color-coded and labeled with death counts in thousands. The code fetches data from a CSV file using d3.csv, then uses d3.pie and d3.arc to generate the chart’s segments, while d3.scaleOrdinal assigns colors to the categories. The SVG rendering includes slice labels positioned via arc.centroid and a separate legend showing country names and values.
AI-generated descriptionPie chart for Depicting the Richest persons in the world