Fork of pie chart
✓ Published0🌍 Public
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 descriptionMIT Licensed