Class type Chartjs.tooltip
method custom : (tooltipModel Js_of_ocaml.Js.t -> unit) Js_of_ocaml.Js.callback Js_of_ocaml.Js.opt Js_of_ocaml.Js.propCustom tooltip callback.
method mode : Interaction_mode.t Js_of_ocaml.Js.t Js_of_ocaml.Js.propSets which elements appear in the tooltip.
method intersect : bool Js_of_ocaml.Js.t Js_of_ocaml.Js.propIf
true, the tooltip mode applies only when the mouse position intersects with an element. Iffalse, the mode will be applied at all times.
method axis : Hover_axis.t Js_of_ocaml.Js.t Js_of_ocaml.Js.propDefines which directions are used in calculating distances. Defaults to
xfor index mode andxyindatasetandnearestmodes.
method position : Tooltip_position.t Js_of_ocaml.Js.propThe mode for positioning the tooltip.
method callbacks : tooltipCallbacks Js_of_ocaml.Js.t Js_of_ocaml.Js.propCallbacks.
method itemSort : ('self, tooltipItem 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_propSort tooltip items.
method filter : ('self, tooltipItem 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_propFilter tooltip items.
method backgroundColor : Color.t Js_of_ocaml.Js.t Js_of_ocaml.Js.propBackground color of the tooltip.
method titleFontFamily : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propTitle font.
method titleFontStyle : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propTitle font style
method titleFontColor : Color.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propTitle font color
method bodyFontFamily : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propBody line font.
method bodyFontStyle : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propBody font style.
method bodyFontColor : Color.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propBody font color.
Footer font.
Footer font size.
Footer font style.
Footer font color.
Spacing to add to top and bottom of each footer line.
Margin to add before drawing the footer.
method caretPadding : int Js_of_ocaml.Js.propExtra distance to move the end of the tooltip arrow away from the tooltip point.
method multyKeyBackground : Color.t Js_of_ocaml.Js.t Js_of_ocaml.Js.propColor 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.propIf
true, color boxes are shown in the tooltip.
method borderColor : Color.t Js_of_ocaml.Js.t Js_of_ocaml.Js.propColor of the border.