Fork of Fork of Fork of Interactive Stacked Bar Chart
This interactive stacked bar chart visualizes the population of continents alongside their total COVID-19 cases. The chart uses `d3.scaleOrdinal` and `d3.schemeCategory10` for color mapping, with `d3.scaleLinear` and `d3.scaleBand` for axes. Hovering over the legend items, implemented via `mouseenter` and `mouseleave` events in `colorLegend.js`, highlights the corresponding religious segment while fading others. The data, from a CSV file, is processed using `flatRollup` and `stack` from D3's `d3` library.
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.