Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

actvity6-2

Public visualization

Viewing a saved revision (read-only)

7e95a849cf634eebaff6c88a78331365

actvity6-2

0 stars0🌍 Public
BBibek Lamsal
Last edited Apr 17, 2024
Created on Apr 17, 2024
Forked from IMDb Movie ratings

A stacked horizontal bar chart shows the percentage of population in three age brackets—14 years and below, 15 to 64 years, and 65 years and above—across seven global regions. The SVG is built with D3 v7, using `d3.stack()` to compute the stacked segments, `d3.scaleLinear()` and `d3.scaleBand()` for positioning, and `d3.scaleOrdinal()` to assign categorical colors. Interactive tooltips reveal exact percentages on hover. Data comes from a CSV file, with axes labeled and a title displayed above the chart.

AI-generated description