Skip to main content
Public

Share visualization

Loading preview…

STACK CHART

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

STACK CHART

0
Ccocktaildata
Last edited Mar 22, 2020
Created on Mar 22, 2020

This example displays a stacked bar chart of deaths by cause across age groups, using WHO data for women in Africa in 2012. It renders with D3.js SVG and animates transitions between counts and percentages via radio buttons, using `d3.layout.stack` with offsets "zero" and "expand" to reshape the bars. The chart also includes a categorical color legend and hover effects that reduce opacity.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed