Class type Chartjs.tooltip

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

Are on-canvas tooltips enabled.

method custom : (tooltipModel Js_of_ocaml.Js.t -> unit) Js_of_ocaml.Js.callback Js_of_ocaml.Js.opt Js_of_ocaml.Js.prop

Custom tooltip callback.

method mode : Interaction_mode.t Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

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.

method axis : Hover_axis.t Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

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

method position : Tooltip_position.t Js_of_ocaml.Js.prop

The mode for positioning the tooltip.

method callbacks : tooltipCallbacks Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

Callbacks.

method itemSort : ('selftooltipItem Js_of_ocaml.Js.t -> tooltipItem Js_of_ocaml.Js.t -> data Js_of_ocaml.Js.t -> int) Js_of_ocaml.Js.meth_callback Js_of_ocaml.Js.optdef_prop

Sort tooltip items.

method filter : ('selftooltipItem Js_of_ocaml.Js.t -> data Js_of_ocaml.Js.t -> bool Js_of_ocaml.Js.t) Js_of_ocaml.Js.meth_callback Js_of_ocaml.Js.optdef_prop

Filter tooltip items.

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

Background color of the tooltip.

method titleFontFamily : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Title font.

method titleFontSize : int Js_of_ocaml.Js.optdef_prop

Title font size.

method titleFontStyle : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Title font style

method titleFontColor : Color.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

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 bodyFontFamily : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Body line font.

method bodyFontSize : int Js_of_ocaml.Js.optdef_prop

Body font size.

method bodyFontStyle : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Body font style.

method bodyFontColor : Color.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Body font color.

method bodySpacing : int Js_of_ocaml.Js.prop

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

method footerFontFamily : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Footer font.

method footerFontSize : int Js_of_ocaml.Js.optdef_prop

Footer font size.

method footerFontStyle : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Footer font style.

method footerFontColor : Color.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

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.

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

Color of the border.

method borderWidth : int Js_of_ocaml.Js.prop

Size of the border.