Skip to main content
100%

Fork of vaccines

✓ Published0🌍 Public
Ppemmasaniprudhvinadh
Last edited Apr 10, 2023
Created on Apr 10, 2023
Forked from vaccines

This stacked bar chart displays the estimated 2010 religious breakdown of the world's 20 most populous countries, with each bar segment representing a religion. Hovering over a bar shows a tooltip with the exact percentage for that country and religion, while hovering over the legend highlights the corresponding segments. The chart uses D3 v3 with `d3.layout.stack` for stacking, `d3.svg.axis` for scales, and `d3-tip` for tooltips. The legend is rendered with `d3.legend.color`, and an overlay rectangle dims non-highlighted bars. Data originates from a Pew Research study on the global religious landscape.

AI-generated description

Stacked bar chart showing estimated religion breakdown.

Interactions:

  • Hover over the bars for tool tips.
  • Hover over the legend to highlight religions.

Based on an example from the tutorial Splitting Charts. Derived from the following examples published on bl.ocks.org:

Estimated 2010 religion breakdown of the most populous 20 countries.

Data is from The Global Religious Landscape by Pew Research, generated using this processing script.

TODO: Upgrade dependencies to latest D3 & friends.

MIT Licensed

Similar vizzes