Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE - 7

Public visualization

Fork of ICE - 7

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

This example uses a pie chart to visualize the top 10 countries by deaths in 2020 attributed to air pollution. The D3.js v5 code loads CSV data from a gist, converts the figures with the `csv` function, and renders the chart using `pie`, `arc`, and `scaleOrdinal`. Each slice is labeled with a short formatted value, and a legend lists the countries with their corresponding counts, all displayed as SVG elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed