Area
An area is a line chart with the region between the line and a baseline filled in. Use it when the magnitude is part of the story — typically for stacked series where the total matters as much as the parts.
Single area
Section titled “Single area”```plot view=daily_signupsPlot.areaY(data, { x: "date", y: "count", fillOpacity: 0.4 })```Stacked
Section titled “Stacked”```plot view=daily_signups_by_sourcePlot.areaY(data, { x: "date", y: "count", fill: "source" })```Stacked, normalized to 100%
Section titled “Stacked, normalized to 100%”Useful for share rather than volume.
```plot view=daily_signups_by_sourcePlot.areaY(data, Plot.stackY( { offset: "normalize" }, { x: "date", y: "count", fill: "source" }))```Common options
Section titled “Common options”| Option | Meaning |
|---|---|
x, y | column names (x is usually a date or ordered numeric) |
fill | column name → series fill (also enables stacking) |
fillOpacity | 0–1; defaults to 1 for stacked, lower for single |
stroke | column name → series stroke (often paired with lineY) |
curve | "linear" (default), "monotone-x", "step", "basis", "natural" |
Plot.stackY(...) transforms | { offset: "normalize" } for 100%-stacked, { order: "appearance" }, { reverse: true } |
tip | true for hover tooltips |
See Observable Plot — area for the full reference.