Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Plot

Public visualization

Viewing a saved revision (read-only)

6c9dcb2cb45f40199d0cf9302caa5072

Plot

0 stars0🌍 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