package chartjs-annotation
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=370fbff01351b354a7947dfc44fd6bda49306f1b9b8712395bcd3651269af27b
sha512=19aebed340aaf2084a126bc28e0aabad490bb361a7b055b506e7a930576098ec6e48775057c2fbce68a12b86576586df2b982381f5639706725c7a12d4780c50
doc/chartjs-annotation/Chartjs_annotation/class-type-label/index.html
Class type Chartjs_annotation.label
Source
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.