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_propThe 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_propThe 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_propThe 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_propThe 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, theleftproperty defines the left border width. Similarly theright,topandbottomproperties can also be specified. Omitted borders andborderSkippedare 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_propThe 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_propThe 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_propThe bar border width when hovered (in pixels).