Skip to main content
100%

Fork of Interactive Stacked Bar Chart

✓ Published0🌍 Public
Vvipulrohit127@gmail.com
Last edited Jun 1, 2024
Created on Jun 1, 2024

This interactive stacked bar chart visualizes the estimated religious breakdown of the 20 most populous countries in 2010, using data from the Pew Research Center’s Global Religious Landscape. Each horizontal bar represents a country, segmented by religion, with population measured in millions. Hovering over the color legend highlights the corresponding religion across all bars while fading others, implemented via D3’s `scaleOrdinal`, `stack`, `scaleLinear`, and `scaleBand`. The visualization uses D3 selections and custom helper modules for responsive axes and interactive legend behavior.

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.

MIT Licensed

Similar vizzes