Skip to main content
100%

ICE 7 Pie chart

✓ Published0🌍 Public
SSreejaBellamkonda
Last edited Mar 27, 2022
Created on Mar 27, 2022

This pie chart displays the top 10 countries by deaths in 2020 attributed to air pollution, with each slice labeled in thousands and a corresponding legend. The data is loaded from a CSV file using `d3.csv`, and the pie layout is computed with `d3.pie`. Slices are drawn as SVG paths via `d3.arc`, with colors assigned by `d3.scaleOrdinal`. Text labels and legend entries are positioned using the arc centroid method, and numbers are formatted with `d3.format`. The chart is rendered entirely in SVG within a D3 v5 environment.

AI-generated description
MIT Licensed

Similar vizzes