Fork of Fork of Interactive Stacked Bar Chart
✓ Published0🌍 Public
A horizontal stacked bar chart breaks down the estimated religious affiliations of the world's 20 most populous countries in 2010. Values derive from Pew Research data. The visualization uses D3's `scaleOrdinal`, `scaleBand`, and `scaleLinear` scales, with `stack()` to compose segments. Hovering over the interactive legend, built from `colorLegend.js`, highlights the corresponding religion across all bars, fading other segments.
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.
MIT Licensed