Skip to main content
100%

Fork of Fork of Fork of Fork of Fork of Interactive Stacked Bar Chart

✓ Published0🌍 Public
Aashok_sanjapu9
Last edited Apr 27, 2024
Created on Apr 27, 2024

This visualization shows the 20 most populous countries in 2023, with each country's total population broken down by religion using stacked horizontal bars. Hovering over the color legend highlights matching segments across all bars while dimming others. The chart uses D3's `flatRollup`, `stack`, `scaleBand`, and `scaleLinear` APIs to process and position the data, with data sourced from the Pew Research Center's Global Religious Landscape study via a CSV file.

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.

//<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/lAOgD_udvTw?si=IcgXd8VRMcC2QaGd" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

MIT Licensed

Similar vizzes