Skip to main content
Public

Share visualization

Loading preview…

Interactive Stacked Bar 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

Interactive Stacked Bar Chart

38
CCurran Kelleher
Last edited Oct 9, 2025
Created on Mar 3, 2024

This interactive stacked bar chart visualizes the estimated religious composition of the 20 most populous countries in 2010, with population in millions on the x-axis and country on the y-axis. Built with D3, the visualization uses an ordinal color scale mapping religions to distinct colors. Hovering over the legend highlights matching religions in the chart, while dimming others, making it easy to compare religious distributions across countries. The data comes from the Pew Research Global Religious Landscape report, and the chart includes a color legend with interactive hover effects.

AI-generated description

Stacked bars showing estimated religion breakdown of the most populous 20 countries in 2010. Based on an example from the tutorial Splitting Charts. Interactions:

  • Hover over the legend to highlight religions.

Data is from The Global Religious Landscape by Pew Research, generated using this processing script.

Comments

Sign in to join the discussion.

MIT Licensed