Skip to main content
100%

Stacked Bar Chart

✓ Published0🌍 Public
AAwrng
Last edited Sep 1, 2026
Created on Sep 1, 2026

This stacked bar chart displays the religious composition of populations across fifteen countries, using horizontal segments within each bar to represent different faiths. Built with React and D3 v7, the visualization loads CSV data and processes it through d3.group and d3.stack to create the layered series. The SVG rendering uses d3.scaleBand, d3.scaleLinear, and d3.scaleOrdinal for positioning and coloring, with clickable bars that trigger React state updates to highlight selected countries with a black stroke.

AI-generated description
MIT Licensed

Similar vizzes