GeomArea

Area geometry: a filled region from the y baseline (zero) to the y value, connected in x order per group. Use for stacked composition-over-time charts. With stat align, series with different x samples share a common grid for stack/fill.

Defaults

geom
area
default stat
identity
default position
stack
params type
AreaParams

Svelte component

import { GGPlot, GeomArea } from "@ggsvelte/svelte";

<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
  <GeomArea />
</GGPlot>

JSON layer

{
  "geom": "area"
}

Params

alpha

number

Area fill opacity. Must be between 0 and 1 (inclusive). Default 1.

fillPaint

GradientPaint

Within-mark gradient fill paint (not a data scale). Requires a solid fallback.

glow

GlowSpec

Bounded within-mark glow treatment (not theme decoration).

Allowed stats

Allowed positions

Examples

← All geoms · Getting started