package chartjs

  1. Overview
  2. Docs

Are on-canvas tooltips enabled.

Sets which elements appear in the tooltip.

method intersect : bool Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

If true, the tooltip mode applies only when the mouse position intersects with an element. If false, the mode will be applied at all times.

Defines which directions are used in calculating distances. Defaults to x for index mode and xy in dataset and nearest modes.

The mode for positioning the tooltip.

Background color of the tooltip.

method titleFontSize : int Js_of_ocaml.Js.optdef_prop

Title font size.

Title font color

method titleSpacing : int Js_of_ocaml.Js.prop

Spacing to add to top and bottom of each title line.

method titleMarginBottom : int Js_of_ocaml.Js.prop

Margin to add on bottom of title section.

method bodyFontSize : int Js_of_ocaml.Js.optdef_prop

Body font size.

Body font color.

method bodySpacing : int Js_of_ocaml.Js.prop

Spacing to add to top and bottom of each tooltip item.

method footerFontSize : int Js_of_ocaml.Js.optdef_prop

Footer font size.

Footer font style.

Footer font color.

method footerSpacing : int Js_of_ocaml.Js.prop

Spacing to add to top and bottom of each footer line.

method footerMarginTop : int Js_of_ocaml.Js.prop

Margin to add before drawing the footer.

method xPadding : int Js_of_ocaml.Js.prop

Padding to add on left and right of tooltip.

method yPadding : int Js_of_ocaml.Js.prop

Padding to add on top and bottom of tooltip.

method caretPadding : int Js_of_ocaml.Js.prop

Extra distance to move the end of the tooltip arrow away from the tooltip point.

method caretSize : int Js_of_ocaml.Js.prop

Size, in px, of the tooltip arrow.

method cornerRadius : int Js_of_ocaml.Js.prop

Radius of tooltip corner curves.

method multyKeyBackground : Color.t Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

Color to draw behind the colored boxes when multiple items are in the tooltip.

method displayColors : bool Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

If true, color boxes are shown in the tooltip.

Color of the border.

method borderWidth : int Js_of_ocaml.Js.prop

Size of the border.