Activity6_Q2.3
✓ Published0🌍 Public
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 descriptionMIT Licensed