Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Stack Chart Template

Public visualization

Viewing a saved revision (read-only)

f2a94d4ad56149e294faf8dd43c2450c

Fork of Stack Chart Template

1 star3🌍 Public
Ssagayous
Last edited Apr 26, 2023
Created on Apr 26, 2023

This interactive stacked bar chart visualizes mortality causes in South African countries for 2013, using WHO data. It displays the number of deaths by cause and age group (or by province with three categories in an alternate version), with a radio-button toggle that switches the y-axis between raw death counts and percentages of total illness. Built with D3.js (v3.5.6), the chart uses `d3.layout.stack` to create stacked segments and adjusts its offset to either "zero" or "expand" based on the selected mode. The SVG renders with animated transitions on rectangles and axes.

AI-generated description