Skip to main content
100%

Activity7_Q1

✓ Published0🌍 Public
SSahithi.R
Last edited Nov 7, 2024
Created on Nov 7, 2024
Forked from HTML Starter

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 description

Pie chart for Depicting the Richest persons in the world

MIT Licensed

Similar vizzes