Skip to main content
100%

Fork of Fork of Fork of Fork of ICE - 7 Pie Chart Maanas Katta

✓ Published0🌍 Public
NNikitha123171
Last edited Mar 26, 2023
Created on Mar 26, 2023

This example presents a pie chart depicting the top 10 countries with the highest deaths in 2020 attributed to air pollution. The visualization uses D3 v5’s `pie` and `arc` generators to create the chart segments, while `scaleOrdinal` assigns colors to each slice. Data is fetched asynchronously from a CSV using the `csv` function, and a legend is rendered with rectangles and text to label each segment. The SVG output is generated entirely with D3’s selection and data-join methods, with tick formatting handled by `format`.

AI-generated description
MIT Licensed

Similar vizzes