Skip to content

Interface: GroupedBarOptions

Defined in: plot.ts:104

Options for Plot.addGroupedBars — one cluster of bars per category.

Properties

gap?

ts
optional gap?: number;

Defined in: plot.ts:111

Fractional gap between bars within a group, 0..1. Default 0.1.


groupWidth?

ts
optional groupWidth?: number;

Defined in: plot.ts:109

Total width of one group (all its bars) in data units. Default 0.8.


orientation?

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

Defined in: plot.ts:113

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


series

ts
series: BarSeries[];

Defined in: plot.ts:107


x

ts
x: ArrayLike<number>;

Defined in: plot.ts:106

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


yAxis?

ts
optional yAxis?: string;

Defined in: plot.ts:114

MIT licensed. WebGL2 required.