Fork of Fork of Fork of Interactive Stacked Bar Chart
This interactive stacked bar chart visualizes COVID-19 case and death counts for the world's most populous countries in 2023. Built with D3 v7, it uses `stack()` to layer the two metrics within horizontal bars, with `scaleBand` for country positioning and `scaleLinear` for the value axis. Hovering over the legend highlights a specific stack layer via `mouseenter` and `mouseleave` events on the color legend. The chart renders as SVG using the `@curran/responsive-axes` library for axis generation, drawing from merged pandemic and population CSV data.
AI-generated descriptionStacked 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.