Skip to main content
Public

Share visualization

Loading preview…

Fork of Stack Chart Template

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Stack Chart Template

3
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

Comments

Sign in to join the discussion.

MIT Licensed