Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

vaccines

Public visualization

Viewing a saved revision (read-only)

778cbf6e3bde426eb49315a3110231d1

vaccines

0 stars1🌍 Public
Ppemmasaniprudhvinadh
Last edited Apr 10, 2023
Created on Mar 23, 2023

This stacked bar chart displays the estimated 2010 religious breakdown of the 20 most populous countries, using horizontal bars with each country’s total tests on the x-axis and location on the y-axis, colored by ISO code. The visualization uses D3 v3 with d3.layout.stack to compute layer offsets, d3.svg.axis for ticks, and d3.legend for a color legend. Hovering over a bar shows a tooltip via d3-tip, while hovering over the legend highlights only that religion’s bars by overlaying a semi-transparent rectangle. Data originates from Pew Research’s Global Religious Landscape, processed through a custom script.

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.