Skip to main content
100%

ICE - 7 Pie Chart

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

Similar vizzes