Skip to main content
Public

Share visualization

Loading preview…

Fork of CV: Stacked Bar Chart

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of CV: Stacked Bar Chart

0
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

Comments

Sign in to join the discussion.

MIT Licensed