Fork of Fork of Interactive Stacked Bar Chart
This stacked bar chart visualizes the distribution of manga demographics (such as Shōnen, Seinen, and Shōjo) across publication start years, using data from a custom CSV file. Hovering over the color legend highlights the corresponding demographic segments within the bars. The visualization is built with D3.js, employing `flatRollup` and `stack` to aggregate and stack the data, while a `scaleOrdinal` with `schemeCategory10` assigns colors. The `colorLegend` component manages the interactive highlighting, adjusting opacity and stroke width for the selected category.
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.