/docsfor

Stacked area

How a total splits over time.

import { StackedArea } from "diagrammatic";

A grid operator's dashboard shows the day's generation stacked by source, because demand must always equal the top edge. This is a sunny weekday in spring.

Generation mix02040evening peakgasnuclearwindsolar0006121824

Illustrative data. Spring weekday, one control area. Gigawatts at the hour.

fig. 03 · Grid generation mix across one day

Solar swells through midday and gas fills the morning and evening shoulders around it. Demand peaks at 40 GW at 20:00, above the midday 37 GW: solar is already gone, so gas has to climb back. Nuclear is a flat floor; wind ignores the sun.

Use it for
A total and its parts moving together through time.
Watch out
Middle bands ride on wobbly baselines; only the bottom band and the total read precisely.