Upgrade WIP - Religions of Largest 20 Countries
This stacked bar chart visualizes the estimated 2010 religious composition of the 20 most populous countries, with each bar segment representing a religion’s population share. Built with D3.js v5, it uses d3.stack for layering, d3.scaleBand for country positioning, and SVG for rendering. Interactive tooltips via d3-tip appear on bar hover, while legend hover filters and highlights specific religions using an overlay rect and foreground bar layer. Data originates from the Pew Research Global Religious Landscape dataset.
AI-generated descriptionStacked bar chart showing estimated religion breakdown.
Interactions:
- Hover over the bars for tool tips.
- Hover over the legend to highlight religions.
Based on an example from the tutorial Splitting Charts. Derived from the following examples published on bl.ocks.org:
Estimated 2010 religion breakdown of the most populous 20 countries.
Data is from The Global Religious Landscape by Pew Research, generated using this processing script.