Fork of Religions of Largest 20 Countries
This stacked bar chart displays the estimated 2010 religion breakdown for the 20 most populous countries, using data from the Pew Research Center’s Global Religious Landscape. Each horizontal bar segments population by religion, color-coded via a categorical scale. Hovering over a bar reveals a tooltip with the specific religion, country, and population count, while hovering over the legend highlights that religion’s segments across all bars. The visualization is built with D3 v3’s layout stack, scales, axes, and the d3-tip library for tooltips, rendered as SVG.