Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

dispie

Public visualization

Viewing a saved revision (read-only)

4272da74e4b5471782cd0252f7ecd4ff

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.