Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Stack Chart Template

Public visualization

Viewing a saved revision (read-only)

18aa4dafda5844209c70ab3e19645b18

Stack Chart Template

0 stars0🌍 Public
Cchungmin-yu
Last edited Aug 3, 2021
Created on Aug 3, 2021

This stacked bar chart visualizes causes of death in 2013 across selected South African countries, using data from the WHO. Users can toggle between raw counts and percentage shares via radio buttons, which triggers a smooth transition in bar heights. The visualization is built with the D3.js library, specifically using `d3.layout.stack` to compute the stacked segments and `d3.svg.axis` for the axes. The chart is rendered as an SVG, and the animation is achieved through D3's `.transition()` method.

AI-generated description