🌍 Public
Viewing a saved revision (read-only)
9aef0135627d4298a82cd32bb749c6ab
Fork of Interactive Stacked Bar Chart
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