Skip to main content
100%

Fork of Interactive Stacked Bar Chart

✓ Published0🌍 Public
Dd.little.king.87@gmail.com
Last edited Nov 18, 2024
Created on Nov 18, 2024

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.

AI-generated description

Stacked 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

Similar vizzes