Skip to main content
100%

Fork of Interactive Stacked Bar Chart

✓ Published0🌍 Public
Cchris.shimotake@gmail.com
Last edited May 2, 2024
Created on May 1, 2024

This interactive stacked bar chart visualizes the estimated religious breakdown of the 20 most populous countries in 2010, with data from the Pew Research Center. Hovering over the color legend highlights the corresponding religion across all countries, dimming other segments and applying a stroke to emphasize the selected category. The visualization uses D3's `scaleOrdinal`, `scaleLinear`, `scaleBand`, `stack`, and `flatRollup` to process and render the data. Interactive behavior is implemented through mouseenter and mouseleave events that update the hovered color value in the state.

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