Class type Chartjs.barDataset
inherit dataset
General
Styling
method backgroundColor : ('a barOptionContext Js_of_ocaml.Js.t, Color.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.t, Color.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.t, Position.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.t, Padding.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, theleft
property defines the left border width. Similarly theright
,top
andbottom
properties can also be specified. Omitted borders andborderSkipped
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).