Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of CV: Stacked Bar Chart

Public visualization

Viewing a saved revision (read-only)

0993ac8e00454784a0b636d1951a8a84

Fork of CV: Stacked Bar Chart

0 stars1🌍 Public
225cs215@kpriet.ac.in
Last edited Sep 24, 2026
Created on Sep 24, 2026

This stacked bar chart displays the religious composition of populations across 15 countries, with each bar segment representing a religion's population in thousands. Clicking a bar segment highlights the entire country's bar with a black outline. The React app loads data from a CSV, processes it into a wide format using d3.group and d3.stack, then renders SVG rectangles scaled by d3.scaleBand and d3.scaleLinear, with axes generated by d3.axisBottom and d3.axisLeft.

AI-generated description