Fork of Interactive Stacked Bar Chart
This interactive stacked bar chart displays the estimated religious composition of the world’s 20 most populous countries in 2010, based on Pew Research data. Each bar segment represents a religion’s population in millions, with total bar length showing overall country population. Hovering over the legend highlights the corresponding religion across all countries while fading others. The visualization uses `d3.scaleOrdinal` for color mapping, the `stack` function from `d3-shape` to compute stacked segments, and `@curran/responsive-axes` for axis rendering.
AI-generated descriptionStacked 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.