Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Making an Interactive Pie Chart

Public visualization

Viewing a saved revision (read-only)

4b30df1473bc401bae7ebe157e7089e7

Fork of Fork of Making an Interactive Pie Chart

0 stars0🌍 Public
Aamiralitah
Last edited Jul 2, 2022
Created on Jul 2, 2022

This interactive donut chart visualizes mortality rates across ten countries, with each slice's arc length proportional to the death count from a CSV file. The chart displays country labels and uses a categorical color scale from `d3-scale-chromatic`. On hover, a tooltip appears showing the percentage of total deaths, calculated from the data. The visualization is built with D3.js using `select`, `pie`, `arc`, and `sum` from the D3 module, rendering as an SVG with custom styling for hover effects.

AI-generated description