Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of pie chart

Public visualization

Viewing a saved revision (read-only)

fe6dc81a52db4c7e93476907e746e12b

Fork of pie chart

0 stars0🌍 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