Class type Chartjs.barDataset

inherit dataset
method data : 'a Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

General

method xAxisID : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

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

method yAxisID : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

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

Styling

method backgroundColor : ('a barOptionContext Js_of_ocaml.Js.tColor.t Js_of_ocaml.Js.t) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

The bar background color.

method borderColor : ('a barOptionContext Js_of_ocaml.Js.tColor.t Js_of_ocaml.Js.t) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

The bar border color.

method borderSkipped : ('a barOptionContext Js_of_ocaml.Js.tPosition.t Js_of_ocaml.Js.t Or_false.t Js_of_ocaml.Js.t) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

The edge to skip when drawing bar. This setting is used to avoid drawing the bar stroke at the base of the fill. In general, this does not need to be changed except when creating chart types that derive from a bar chart. Note: for negative bars in vertical chart, top and bottom are flipped. Same goes for left and right in horizontal chart. Options are: 'bottom', 'left', 'top', 'right', false

method borderWidth : ('a barOptionContext Js_of_ocaml.Js.tPadding.t Js_of_ocaml.Js.t) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

The bar border width (in pixels). If this value is a number, it is applied to all sides of the rectangle (left, top, right, bottom), except borderSkipped. If this value is an object, the left property defines the left border width. Similarly the right, top and bottom properties can also be specified. Omitted borders and borderSkipped are skipped.

Interactions

All these values, if undefined, fallback to the associated elements.rectangle.* options.

method hoverBackgroundColor : Color.t Js_of_ocaml.Js.t Indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

The bar background color when hovered.

method hoverBorderColor : Color.t Js_of_ocaml.Js.t Indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

The bar border color when hovered.

method hoverBorderWidth : Color.t Js_of_ocaml.Js.t Indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

The bar border width when hovered (in pixels).

method stack : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

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