TChartStacking

type
Data Display

Stacking strategy for bar, column and area charts — controls whether series are stacked by absolute values or normalised to 100 %.

TypeScript

Definition

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

typescript

Accepted

Values

Accepted string literal values for this type. Click a value to copy it.

normal
Series are stacked using their raw absolute values. The Y-axis spans 0 → max(stack total).
percent
Each stack is normalised to 100 %. The Y-axis is fixed at 0 → 100 and tick labels default to the "${v}%" format. The tooltip shows both the raw value and its share.

Ecosystem

Used by

Components and props that accept this type as a value.

Usage

Examples

Ready-to-paste code snippets using this type.

Stacked column chart normalised to 100 %

html