Skip to main content
100%

Fork of activity 7Question 1

✓ Published0🌍 Public
Aabjalshaik02@gmail.com
Last edited Nov 6, 2024
Created on Nov 5, 2024

This pie chart displays the top 10 countries by deaths in 2020 from air pollution. The code loads data from a CSV file, calculates each country’s share, and renders sections using d3.pie and d3.arc. It applies a d3.scaleOrdinal for colors, labels each slice with a formatted death count, and includes a legend built with SVG rectangles and text. The visualization uses D3 v5 with SVG rendering, featuring a simple color palette of ten predefined CSS colors.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes