Skip to main content
100%

Plot

✓ Published0🌍 Public
SStefan Apostol
Last edited Jan 19, 2024
Created on Jan 19, 2024
Forked from HTML Starter

This example displays a population pyramid using horizontally stacked areas, showing age distribution by sex and marital status across German population data from the Federal Institute for Population Research. Men are plotted to the left of the central axis, women to the right, with translated category labels for single, married, divorced, and widowed individuals. The primary plot uses Observable Plot’s `Plot.areaX` with negative and positive x-values to mirror the sexes, while a second version applies separate marks with shifted axes. Both render as SVG with an animated legend.

AI-generated description
MIT Licensed

Similar vizzes