🌍 Public
Viewing a saved revision (read-only)
6c9dcb2cb45f40199d0cf9302caa5072
Plot
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