Skip to main content
100%

CV: Stacked Bar Chart

✓ Published13🌍 Public
CCurran Kelleher
Last edited Oct 24, 2025
Created on Oct 24, 2025
Forked from CV: Bar Chart

This example visualizes religious demographics across countries using a stacked bar chart, where each bar represents a country and colored segments show population counts by religion. Clicking a bar highlights it with a black stroke. The visualization processes CSV data with D3's `group()` and `stack()` functions to create stacked series, rendered as SVG rectangles with `scaleBand` for the x-axis and `scaleLinear` for the y-axis. Built with React and D3 v7, it uses imperative D3 joins within React components for rendering.

AI-generated description
MIT Licensed

Similar vizzes