D3 Example
This example shows a stacked bar chart comparing the estimated population of eight religious groups across five countries (China, India, USA, Indonesia, and Brazil) in 2010. The visualization uses D3.js with `d3.layout.stack` to layer the bars, `d3.svg.axis` for axes, and `d3.legend.color` for the interactive legend. Hovering over a legend entry fades the underlying bars with a semi-transparent overlay and re-renders only the selected layer in the foreground, with tooltips via `d3.tip`. The data is the Pew Research report on the global religious landscape.
AI-generated descriptionStacked bars showing estimated religion by top 5 countries in 2010. This is an example from the tutorial Splitting Charts. The data shown is from this report on The Global Religious Landscape from Pew Research, generated using this processing script.
- Draws from Stacked-to-Grouped Bars
- Tooltip logic draws from World City Explorer
forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/805413fb3b2efaada1ce'>Stacked Bars</a>