Skip to content

StackTransform

StackTransform = object

Defined in: spec/transform.ts:56

Turns overlapping values into contiguous ones: the difference between a grouped bar chart and a stacked one, and between an area chart and a streamgraph.

optional as?: readonly [string, string]

Defined in: spec/transform.ts:62


field: string

Defined in: spec/transform.ts:58


groupBy: readonly string[]

Defined in: spec/transform.ts:59


kind: "stack"

Defined in: spec/transform.ts:57


optional offset?: "zero" | "normalize" | "center"

Defined in: spec/transform.ts:61

"zero" stacks from a baseline, "normalize" to a share of one.