Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE - 7 Pie Chart Prathyusha Nemani

Public visualization

Fork of ICE - 7 Pie Chart Prathyusha Nemani

0 stars0🌍 Public
PPrathyusha0304
Last edited Mar 27, 2022
Created on Mar 27, 2022

This pie chart visualizes the top three countries by deaths from water pollution in 2020, displaying each country’s death count in thousands as a labeled arc segment. The chart uses D3 v5’s `pie`, `arc`, and `scaleOrdinal` to generate and color the proportional slices, with SVG text positioned via `arcGenerator.centroid`. A custom legend shows country names and death values, while the data is fetched as CSV from a GitHub gist and formatted using D3’s `format` function.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed