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.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. Iffalse
, 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 andxy
indataset
andnearest
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 : ('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_prop
Sort 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_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 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 bodyFontFamily : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop
Body line font.
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.
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.prop
Extra 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.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.