Skip to main content
100%

activity 6 question 2

✓ Published0🌍 Public
RRakesh Yadav
Last edited Apr 11, 2024
Created on Apr 11, 2024

This visualization shows religious demographics across the top 20 most populous countries using a horizontal stacked bar chart, where each bar represents total population segmented by religion and color-coded via an ordinal scale. A linked color legend allows users to hover over religion categories, which highlights corresponding bar segments while fading others and raising the hovered stack. The chart is built with d3-scale’s scaleLinear, scaleBand, and scaleOrdinal, uses d3-shape’s stack for stacking, and implements responsive resizing via @curran/responsive-axes. Data comes from a static CSV detailing population counts per country and religion.

AI-generated description
MIT Licensed

Similar vizzes