🌍 Public
Viewing a saved revision (read-only)
fe6dc81a52db4c7e93476907e746e12b
Fork of pie chart
This example displays the top 10 countries by malaria deaths in 1965 as a pie chart, with each segment labeled with the corresponding death count in thousands. It uses D3 v5’s `pie()` generator, `arc()` for segment paths, and `scaleOrdinal` for color assignment. Data is fetched from a CSV via `d3.csv`, and the chart is rendered as SVG. A legend to the right lists each country with a color swatch and its death total, formatted using `d3.format`.
AI-generated description