Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE - 7 Pie Chart Maanas Katta

Public visualization

Viewing a saved revision (read-only)

e55300d27c834a778fb73e29d2e0608c

Fork of ICE - 7 Pie Chart Maanas Katta

0 stars0🌍 Public
KKeerthipriyaBankuru
Last edited Jul 3, 2022
Created on Jul 3, 2022

A pie chart displays the top 10 countries by deaths in 2020 from air pollution, with each slice labeled with its value in thousands and a legend listing country names and corresponding figures. The chart uses D3 v5 to load CSV data from a gist URL, then applies `d3.pie` and an arc generator to compute slice geometries, `d3.scaleOrdinal` for slice colors, and SVG `path` and `text` elements for rendering. Values are formatted with `d3.format` and the chart is centered in a 960×500 SVG canvas.

AI-generated description