Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Q2.3

Public visualization

Viewing a saved revision (read-only)

8979581037324f7e9ee38c8ce2897f3e

Activity6_Q2.3

0 stars0🌍 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