CHART_STREAMGRAPH_OFFSET

enum
Chart

Baseline offset strategy for the streamgraph chart — wiggle, silhouette, expand, or zero.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Members

Members

All members of this enum. Click a value to copy it to clipboard.

CHART_STREAMGRAPH_OFFSET.WIGGLE
Minimises the sum of squared slopes; produces the classic stream shape.
CHART_STREAMGRAPH_OFFSET.SILHOUETTE
Centers the stream around zero, giving a symmetric silhouette.
CHART_STREAMGRAPH_OFFSET.EXPAND
Normalises values so the total at each point fills the full height (0–1).
CHART_STREAMGRAPH_OFFSET.ZERO
All streams are stacked from a fixed zero baseline.

Usage

Examples

Ready-to-paste code snippets using this enum.

Using the enum in script setup

typescript