package chartjs-annotation
OCaml bindigns for Chart.js annotation plugin
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.2.2.tar.gz
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.
Font family of text.
method position : Position.t Js_of_ocaml.Js.t Js_of_ocaml.Js.prop
Anchor position of label on line.
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.
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.
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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>