Fork of Interactive Stacked Bar Chart
This interactive stacked bar chart displays the estimated religious breakdown of the 20 most populous countries in 2010, with each bar’s segments colored by religion. Hovering over the legend highlights that religion across all bars, dimming others. The visualization uses d3.flatRollup, d3.stack, and d3.scaleOrdinal to structure and color the data from Pew Research. It also employs a custom colorLegend and d3.scaleBand for the categorical country axis.