🌍 Public
Viewing a saved revision (read-only)
a6eb2f41cf104b898691a27cadea62cb
Question 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 descriptionA bare minimum HTML page.