Skip to content

Interface: StackedBarOptions

Defined in: plot.ts:118

Options for Plot.addStackedBars — series stacked on top of each other.

Properties

orientation?

ts
optional orientation?: "v" | "h";

Defined in: plot.ts:125

"v" vertical (default) or "h" horizontal bars.


series

ts
series: BarSeries[];

Defined in: plot.ts:121


width?

ts
optional width?: number;

Defined in: plot.ts:123

Bar width in data units. Defaults to 80% of the median spacing.


x

ts
x: ArrayLike<number>;

Defined in: plot.ts:120

Category positions (e.g. 0..n-1 for a categorical axis).


yAxis?

ts
optional yAxis?: string;

Defined in: plot.ts:126

MIT licensed. WebGL2 required.