package chartjs-annotation

  1. Overview
  2. Docs

Background color of label.

Font family of text.

method fontSize : int Js_of_ocaml.Js.prop

Font size of text.

Font style of text.

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.

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.

Whether the label is enabled and should be displayed.

Text to display in label - default is null. Provide an array to display values on a new line.