Can be set to 'x', 'y', 'xy' or 'r' to define which directions are used in calculating distances. Defaults to 'x' for 'index' mode and 'xy' in dataset and 'nearest' modes.
Optional intersect
intersect?:boolean
if true, the hover mode only applies when the mouse position intersects an item on the chart.
default
true
Optional mode
mode?:any
Sets which elements appear in the tooltip. See Interaction Modes for details.
Can be set to 'x', 'y', 'xy' or 'r' to define which directions are used in calculating distances. Defaults to 'x' for 'index' mode and 'xy' in dataset and 'nearest' modes.