Skip to main content
100%

Religion by Country

✓ Published0🌍 Public
Hhimavinaytummala@my.unt.edu
Last edited Apr 6, 2024
Created on Apr 6, 2024

This stacked bar chart visualizes the estimated religious composition of the world’s 20 most populous countries in 2010, based on data from the Pew Research Center’s Global Religious Landscape. Each bar is segmented by religion, with colors from D3’s `schemeCategory10`, enabling quick comparison of dominant faiths like Christianity, Islam, and Hinduism across nations. Hovering over the legend highlights the corresponding segments within the bars, while dimming others for focused inspection. The visualization is built using D3’s `scaleOrdinal`, `scaleLinear`, `scaleBand`, and `stack` APIs, with custom color legend and responsive axes handling.

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