Interface: BarControllerDatasetOptions

Hierarchy

Properties

animation

• animation: false | AnimationSpec<bar> & { onComplete?: (event: AnimationEvent) => void ; onProgress?: (event: AnimationEvent) => void }

Inherited from: void

Defined in: index.esm.d.ts:1527BarControllerDatasetOptions - 图1 (opens new window)


animations

• animations: AnimationsSpec<bar>

Inherited from: void

Defined in: index.esm.d.ts:1537BarControllerDatasetOptions - 图2 (opens new window)


backgroundColor

• backgroundColor: ScriptableAndArray<Color, ScriptableContext<bar>>

Inherited from: void

Defined in: index.esm.d.ts:1582BarControllerDatasetOptions - 图3 (opens new window)


barPercentage

• barPercentage: number

Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other.

default 0.9

Defined in: index.esm.d.ts:97BarControllerDatasetOptions - 图4 (opens new window)


barThickness

• barThickness: number | flex

Manually set width of each bar in pixels. If set to ‘flex’, it computes “optimal” sample widths that globally arrange bars side by side. If not set (default), bars are equally sized based on the smallest interval.

Defined in: index.esm.d.ts:107BarControllerDatasetOptions - 图5 (opens new window)


base

• base: ScriptableAndArray<number, ScriptableContext<bar>>

The base value for the bar in data units along the value axis.

Inherited from: void

Defined in: index.esm.d.ts:1825BarControllerDatasetOptions - 图6 (opens new window)


borderColor

• borderColor: ScriptableAndArray<Color, ScriptableContext<bar>>

Inherited from: void

Defined in: index.esm.d.ts:1581BarControllerDatasetOptions - 图7 (opens new window)


borderRadius

• borderRadius: ScriptableAndArray<number | BorderRadius, ScriptableContext<bar>>

Border radius

default 0

Inherited from: void

Defined in: index.esm.d.ts:1837BarControllerDatasetOptions - 图8 (opens new window)


borderSkipped

• borderSkipped: ScriptableAndArray<false | start | end | left | right | bottom | top, ScriptableContext<bar>>

Skipped (excluded) border: ‘start’, ‘end’, ‘left’, ‘right’, ‘bottom’, ‘top’ or false (none).

default ‘start’

Inherited from: void

Defined in: index.esm.d.ts:1831BarControllerDatasetOptions - 图9 (opens new window)


borderWidth

• borderWidth: ScriptableAndArray<number, ScriptableContext<bar>>

Inherited from: void

Defined in: index.esm.d.ts:1580BarControllerDatasetOptions - 图10 (opens new window)


categoryPercentage

• categoryPercentage: number

Percent (0-1) of the available width each category should be within the sample width.

default 0.8

Defined in: index.esm.d.ts:102BarControllerDatasetOptions - 图11 (opens new window)


clip

• clip: number | ChartArea

How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}

Inherited from: ControllerDatasetOptions.clip

Defined in: index.esm.d.ts:58BarControllerDatasetOptions - 图12 (opens new window)


hidden

• hidden: boolean

Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.

default false

Inherited from: ControllerDatasetOptions.hidden

Defined in: index.esm.d.ts:76BarControllerDatasetOptions - 图13 (opens new window)


hoverBackgroundColor

• hoverBackgroundColor: ScriptableAndArray<Color, ScriptableContext<bar>>

Inherited from: void

Defined in: index.esm.d.ts:1588BarControllerDatasetOptions - 图14 (opens new window)


hoverBorderColor

• hoverBorderColor: ScriptableAndArray<Color, ScriptableContext<bar>>

Inherited from: void

Defined in: index.esm.d.ts:1587BarControllerDatasetOptions - 图15 (opens new window)


hoverBorderWidth

• hoverBorderWidth: ScriptableAndArray<number, ScriptableContext<bar>>

Inherited from: void

Defined in: index.esm.d.ts:1586BarControllerDatasetOptions - 图16 (opens new window)


indexAxis

• indexAxis: x | y

The base axis of the chart. ‘x’ for vertical charts and ‘y’ for horizontal charts.

default ‘x’

Inherited from: ControllerDatasetOptions.indexAxis

Defined in: index.esm.d.ts:54BarControllerDatasetOptions - 图17 (opens new window)


label

• label: string

The label for the dataset which appears in the legend and tooltips.

Inherited from: ControllerDatasetOptions.label

Defined in: index.esm.d.ts:62BarControllerDatasetOptions - 图18 (opens new window)


maxBarThickness

• maxBarThickness: number

Set this to ensure that bars are not sized thicker than this.

Defined in: index.esm.d.ts:112BarControllerDatasetOptions - 图19 (opens new window)


minBarLength

• minBarLength: number

Set this to ensure that bars have a minimum length in pixels.

Defined in: index.esm.d.ts:117BarControllerDatasetOptions - 图20 (opens new window)


normalized

• normalized: boolean

Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

Inherited from: ControllerDatasetOptions.normalized

Defined in: index.esm.d.ts:46BarControllerDatasetOptions - 图21 (opens new window)


order

• order: number

The drawing order of dataset. Also affects order for stacking, tooltip and legend.

Inherited from: ControllerDatasetOptions.order

Defined in: index.esm.d.ts:66BarControllerDatasetOptions - 图22 (opens new window)


parsing

• parsing: false | { [key: string]: string; }

How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

Inherited from: ControllerDatasetOptions.parsing

Defined in: index.esm.d.ts:37BarControllerDatasetOptions - 图23 (opens new window)


pointStyle

• pointStyle: PointStyle

Point style for the legend

default ‘circle;

Defined in: index.esm.d.ts:123BarControllerDatasetOptions - 图24 (opens new window)


stack

• stack: string

The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).

Inherited from: ControllerDatasetOptions.stack

Defined in: index.esm.d.ts:71BarControllerDatasetOptions - 图25 (opens new window)


transitions

• transitions: TransitionsSpec<bar>

Inherited from: void

Defined in: index.esm.d.ts:1538BarControllerDatasetOptions - 图26 (opens new window)


xAxisID

• xAxisID: string

The ID of the x axis to plot this dataset on.

Defined in: index.esm.d.ts:87BarControllerDatasetOptions - 图27 (opens new window)


yAxisID

• yAxisID: string

The ID of the y axis to plot this dataset on.

Defined in: index.esm.d.ts:91BarControllerDatasetOptions - 图28 (opens new window)