🌍 Public
Viewing a saved revision (read-only)
6e09e68214f94dff8d1955cd7cdc3d55
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.