Skip to main content
100%

Question 1

✓ Published2🌍 Public
SSowjanya Devupalli
Last edited Nov 4, 2024
Created on Nov 4, 2024
Forked from Task9 Questin 1

This example shows the top 10 countries by deaths from air pollution in 2020 as a donut-style pie chart. Each slice is labeled with its death count in thousands, and a legend lists the countries with corresponding color swatches and values. Built with D3.js v5, the code uses `d3.pie`, `d3.arc`, `d3.scaleOrdinal`, and `d3.format` to compute and render the chart as SVG. Data is fetched as CSV from a GitHub repository, with sections colored via a fixed array of ten colors.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes