Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task8_Tutorial1

Public visualization

Viewing a saved revision (read-only)

f4c8ee624f2b40ffa45f26400aedb21d

Task8_Tutorial1

0 stars1🌍 Public
Ppranayrajana.97@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the estimated religious composition of the 20 most populous countries in 2010, using data from the Pew Research Center's Global Religious Landscape. The chart uses `d3.flatRollup` and `d3.stack` to structure the data, with `d3.scaleLinear` for the x-axis (population in millions) and `d3.scaleBand` for the y-axis (countries). A color legend, built with `colorLegend.js`, allows users to hover over a religion to highlight its segments across all bars while fading others, using `d3.scaleOrdinal` with `schemeCategory10` for color assignment.

AI-generated description

Stacked 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.