Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Interactive Stacked Bar Chart

Public visualization

Fork of Interactive Stacked Bar Chart

0 stars0🌍 Public
YYujin
Last edited Nov 18, 2025
Created on Nov 18, 2025

This interactive stacked bar chart visualizes the populations of the top 20 countries, segmented by religious affiliation, with a color legend highlighting each category. Hovering over a legend entry dims all other religion segments, emphasizing the selected group across bars. Built with D3, it uses `scaleOrdinal` for color mapping, `scaleLinear` for the x-axis, `scaleBand` for countries, and the `stack` API to compute stacked segments from the CSV data.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed