Skip to main content

BarPlotOptions

Options for a bar/column chart plot

Extends

Properties

barGap?

optional barGap: number

The amount of space to leave between bars of the same category when there are multiple series.


barSize?

optional barSize: number

The width/height to use for bars representing values. If you provide this the chart will not check whether it results in any overlap. Defaults to null.


dataLabels?

optional dataLabels: DataLabelsOptions

Options for data labels. If true, the value for the bar is shown. If a string, it is used as a format string.


fillRatio?

optional fillRatio: number

How much of the space available to each category to use for the bars in the chart. Defaults to 0.8. You should not set this to a value greater than 1.


maxBarSize?

optional maxBarSize: number

The maximum size of a bar representing a value. Defaults to 50 pixels. This value applies to the category axis, NOT the value axis! In the value axis the size of the bar maps the value being displayed.


stacked?

optional stacked: boolean | "percent" | "default"

Whether to stack series values on top of each other.

Inherited from

StackablePlotOptions.stacked


valueAxis?

optional valueAxis: string

ID of the value axis to attach to. Defaults to DEFAULT.

Inherited from

XYPlotOptions.valueAxis