Fork of Fork of Interactive Stacked Bar Chart
This interactive stacked bar chart visualizes the estimated religious composition of the 20 most populous countries in 2010, with each bar segment colored by religion using d3.scaleOrdinal and d3.stack. Hovering over the color legend highlights the corresponding religion in the chart, fading other segments and raising the active stack via d3 selection methods. The chart uses d3.scaleLinear and d3.scaleBand for axes, with data sourced from Pew Research and rendered using the d3 selection/join pattern.
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.