package chartjs
Class type Chartjs.barDatasetSource
inherit datasetGeneral
The ID of the x axis to plot this dataset on.
The ID of the y axis to plot this dataset on.
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, 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_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).