Skip to main content
100%

Fork of ICE - 7 Pie Chart Prathyusha Nemani

✓ Published0🌍 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
MIT Licensed

Similar vizzes