Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE - 7 Pie Chart

Public visualization

Viewing a saved revision (read-only)

e0bf04896fdb4643a73f0dc53788f2ce

ICE - 7 Pie Chart

0 stars0🌍 Public
Ssowmyanagula@my.unt.edu
Last edited Mar 26, 2022
Created on Mar 26, 2022

This example shows the top 10 countries by deaths attributed to air pollution in 2020, using a pie chart with labeled segments and a legend. It uses d3.csv to load the data and d3.pie and d3.arc to generate the chart’s paths, with d3.scaleOrdinal assigning fixed colors. Each slice displays its value in thousands, and the legend lists country names and corresponding figures. The visualization is rendered as SVG, with patterns drawn using d3.arc’s centroid for label placement.

AI-generated description