Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity7_Q1

Public visualization

Activity7_Q1

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed