Skip to main content
100%

Fork of pie chart

✓ Published0🌍 Public
Ppavan0828
Last edited Jul 3, 2022
Created on Jul 3, 2022

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
MIT Licensed

Similar vizzes