Skip to main content
100%

Activity6_Task2

✓ Published0🌍 Public
Pperamranji
Last edited Mar 31, 2025
Created on Mar 31, 2025
Forked from Hello VizHub

This stacked horizontal bar chart visualizes the distribution of age groups across different continents, with each bar representing a continent and segments colored by age bracket. The visualization uses a D3.js v7 SVG rendering with `d3.stack()` to compute the stacked segments, `d3.scaleOrdinal()` for color mapping, and `d3.scaleBand()`/`d3.scaleLinear()` for axes. Tooltips, implemented via mouseover events, display the exact percentage for each segment, with x-axis labels indicating percentage values. Data is loaded from a CSV file containing pre-calculated proportions per continent.

AI-generated description
MIT Licensed

Similar vizzes