Skip to main content
100%

Fork of Interactive Stacked Bar Chart

✓ Published0🌍 Public
HHaili0109
Last edited Nov 26, 2024
Created on Nov 26, 2024

This interactive radial stacked bar chart displays the estimated religious breakdown of the most populous 20 countries in 2010, based on data from the Pew Research Center. Users can select a country from a dropdown menu to view its population distribution across six religious categories, with hover interactions on the legend highlighting specific religions. Built with D3.js, the visualization uses `scaleBand` and `scaleRadial` to map religions to angular segments and population to radial distances, while `d3.stack` processes the grouped data for layered arcs rendered as SVG paths with animated transitions.

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