Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

dispie

Public visualization

Viewing a saved revision (read-only)

a6814e8280e74f71b6fa5a51a5f54f19

dispie

0 stars0🌍 Public
JJayanth Reddy Sripathi
Last edited Dec 5, 2024
Created on Dec 4, 2024

This pie chart shows the count of deaths by disaster type from 2000–2024, aggregating data into the top ten categories plus an “Others” slice. It uses React for component rendering and D3 v7’s `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate SVG paths and color slices. The code fetches a CSV via `d3.csv`, applies `d3.rollups` and `d3.sum` for aggregation, and adds interactive tooltips and percentage labels.

AI-generated description

A demonstration of how to start using D3 version 6.