Skip to main content
100%

Stacked Bar Chart for World Population

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

This stacked bar chart visualizes the religious composition of the world's 20 most populous countries in 2010, using data from the Pew Research Center's Global Religious Landscape report. Each horizontal bar represents a country, segmented by religion, with population values in millions. Hovering over a color legend highlights the corresponding religious group across all countries while fading the others. The visualization is built with D3.js, utilizing `scaleOrdinal` for colors, `stack` for segmenting bars, and a custom `colorLegend` function for interactive filtering.

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