Skip to main content
100%

Activity6_Q2.3

✓ Published0🌍 Public
VVidya Lakshmi Chitturi
Last edited Apr 2, 2025
Created on Apr 1, 2025
Forked from Hello VizHub

This visualization shows the proportional distribution of population across Africa, Asia, and Europe for five countries, with each horizontal bar normalized to 100% to facilitate cross-country comparison. The chart renders as a normalized stacked bar chart using SVG, where each segment’s length represents its percentage share. The code loads data from a CSV file, converts values to percentages, and uses d3.stack() for stacking, d3.scaleLinear() and d3.scaleBand() for axes, and d3.scaleOrdinal() for colors. Interactive tooltips display exact percentages on hover.

AI-generated description
MIT Licensed

Similar vizzes