Skip to main content
100%

Religions of Largest 20 Countries

✓ Published1🌍 Public
Aala-wahibi
Last edited Mar 9, 2020
Created on Mar 5, 2020

This interactive visualization displays the religious composition of the world’s 20 most populous countries. A bar chart ranks countries by total population; hovering over a bar triggers an animated pie chart showing that country’s religious breakdown, with a color legend. The visualization uses D3 v5 with SVG and transitions via `transition.attrTween` for the pie arcs. Data comes from the Pew Research Center’s Global Religious Landscape, processed from a CSV file. The bar chart uses `d3.scaleLinear` and `d3.scaleBand`, while the pie chart employs `d3.pie` and `d3.arc`.

AI-generated description

Hover on any country bar in the bar chart to visualize the religions distributed in the correspoding country as pie chart.

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

MIT Licensed

Similar vizzes