Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

try1

Public visualization

Viewing a saved revision (read-only)

fa7ef6ba70ca4a9ead8476c0f70199a3

try1

0 stars0🌍 Public
Sshivasaiamaravadi@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024

This stacked bar chart displays the estimated religious composition of the 20 most populous countries in 2010, with each bar representing a country’s population in millions segmented by religion. Hovering over the legend highlights the corresponding religion across all countries while fading others. The visualization uses D3’s `scaleOrdinal`, `stack`, and `scaleBand`, with interactive legend handling via `mouseenter` and `mouseleave` events. Data comes from a Pew Research report on the global religious landscape.

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.