Skip to main content
100%

Fork of Interactive Stacked Bar Chart

✓ Published0🌍 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
MIT Licensed

Similar vizzes