Class type Chartjs_annotation.label
method backgroundColor : Chartjs.Color.t Js_of_ocaml.Js.t Js_of_ocaml.Js.prop
Background color of label.
method fontFamily : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.prop
Font family of text.
method position : Position.t Js_of_ocaml.Js.t Js_of_ocaml.Js.prop
Anchor position of label on line.
method xAdjust : int Js_of_ocaml.Js.prop
Adjustment along y-axis (top-bottom) of label relative to above number (can be negative). For vertical lines positioned top or bottom, negative values move the label toward the edge, and positive values toward the center.
method yAdjust : int Js_of_ocaml.Js.prop
Adjustment along y-axis (top-bottom) of label relative to above number (can be negative). For vertical lines positioned top or bottom, negative values move the label toward the edge, and positive values toward the center.
method enabled : bool Js_of_ocaml.Js.t Js_of_ocaml.Js.prop
Whether the label is enabled and should be displayed.
method content : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Chartjs.Indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.opt Js_of_ocaml.Js.prop
Text to display in label - default is
null
. Provide an array to display values on a new line.