Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Interactive Stacked Bar Chart

Public visualization

Fork of Interactive Stacked Bar Chart

0 stars0🌍 Public
Ooliverkendall99@gmail.com
Last edited Dec 3, 2024
Created on Dec 3, 2024

A stacked bar chart displays the estimated religious breakdown of the world’s 20 most populous countries in 2010, with each bar segmented by religion and colored via a categorical scale. Hovering over the color legend dims non-matching segments and outlines the selected religion. The visualization uses D3’s `stack` and `flatRollup` for data aggregation, `scaleBand` and `scaleLinear` for axes, and a custom `colorLegend` component. Data comes from the Pew Research Center’s Global Religious Landscape, processed into a CSV.

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.

Comments

Sign in to join the discussion.

MIT Licensed