Skip to content

Interface: D3PStackOptions ​

Defined in: core/transforms.ts:70

Options of a stack: the series to stack, the offset and the order of the layers.

Properties ​

bus? ​

ts
bus?: D3PBus;

Defined in: core/transforms.ts:72

The bus the stack uses (the global bus by default).


offset? ​

ts
offset?: D3PStackOffset;

Defined in: core/transforms.ts:80

none: layers add up from zero. expand: normalized to 0-1 (100 % stacks). diverging: negatives go below zero. silhouette and wiggle: centered around the axis (streamgraphs; pair wiggle with order: 'insideOut').


order? ​

ts
order?: D3PStackOrder;

Defined in: core/transforms.ts:82

The order of the layers (the order of the inputs by default).


series ​

ts
series: D3PSeries[];

Defined in: core/transforms.ts:74

Series to stack, bottom first (see order). They should share their x values; a missing x counts as 0.