Skip to main content
100%

Icelandic population pyramid

✓ Published0🌍 Public
ZZJONSSON
Last edited Nov 6, 2014
Created on Apr 29, 2013

This interactive population pyramid animates Iceland’s demographic structure from 1841 to 2013 via a slider. It shows age cohorts split by sex, with bars extending left and right from a central axis. The code uses d3.csv to load yearly data, d3.scale.linear for value mapping, and d3.svg.axis for labeled axes. SVG rectangles are repositioned and resized on each redraw based on the selected year, with separate scales for males and females to create the mirrored layout.

AI-generated description

Similar vizzes