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 fontSize : int Js_of_ocaml.Js.prop

Font size of text.

method fontStyle : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

Font style of text.

method fontColor : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

Font color of text.

method xPadding : int Js_of_ocaml.Js.prop

Padding of label to add left/right.

method yPadding : int Js_of_ocaml.Js.prop

Padding of label to add top/bottom.

method cornerRadius : int Js_of_ocaml.Js.prop

Radius of label rectangle.

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.