package chartjs

  1. Overview
  2. Docs

The items that we are rendering in the tooltip.

Positioning.

method xPadding : int Js_of_ocaml.Js.readonly_prop
method yPadding : int Js_of_ocaml.Js.readonly_prop

X and Y readonly_properties are the top left of the tooltip.

method width : float Js_of_ocaml.Js.readonly_prop
method height : float Js_of_ocaml.Js.readonly_prop
method caretX : int Js_of_ocaml.Js.readonly_prop

Where the tooltip points to.

method caretY : int Js_of_ocaml.Js.readonly_prop

Body. The body lines that need to be rendered. Each object contains 3 parameters. before - lines of text before the line with the color square lines - lines of text to render as the main item with color square after - lines of text to render after the main lines.

method bodyFontSize : int Js_of_ocaml.Js.readonly_prop
method bodySpacing : int Js_of_ocaml.Js.readonly_prop

Title. Lines of text that form the title.

method titleFontSize : int Js_of_ocaml.Js.readonly_prop
method titleSpacing : int Js_of_ocaml.Js.readonly_prop
method titleMarginBottom : int Js_of_ocaml.Js.readonly_prop

Footer. Lines of text that form the footer.

method footerFontSize : int Js_of_ocaml.Js.readonly_prop
method footerSpacing : int Js_of_ocaml.Js.readonly_prop
method footerMarginTop : int Js_of_ocaml.Js.readonly_prop

Appearance.

method caretSize : int Js_of_ocaml.Js.readonly_prop
method caretPadding : int Js_of_ocaml.Js.readonly_prop
method cornerRadius : int Js_of_ocaml.Js.readonly_prop

Colors to render for each item in body. This is the color of the squares in the tooltip.

method opacity : float Js_of_ocaml.Js.readonly_prop

Zero opacity is a hidden tooltip.

method borderWidth : int Js_of_ocaml.Js.readonly_prop
OCaml

Innovation. Community. Security.