Skip to main content
100%

Fork of Fork of Interactive Stacked Bar Chart

✓ Published9🌍 Public
DDivyaKota2@my.unt.edu
Last edited Apr 26, 2024
Created on Apr 26, 2024

This stacked bar chart displays population estimates for the world's most populous countries, segmented by religion for the year 2010. Hovering over the color legend highlights the corresponding segments across all bars. Built with D3.js, it uses `scaleOrdinal` for colors and `stack` for the bar aggregation. The data comes from a Pew Research report, processed and loaded from 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