Fork of Interactive Stacked Bar Chart
✓ Published0🌍 Public
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 descriptionMIT Licensed