Tooltips respond to hover events. The next table lists properties of the hover object, which can be configured globally using Chart.defaults.global.hover or locally using options.hover:
Object |
Value |
Description |
intersect |
true or false |
Same behavior as tooltip.intersect. Tooltips can respond to different intersect states when hovering. |
mode |
nearest, index, dataset, x, y. Deprecated values are label (same as index), and single (behaves like nearest when intersect: true). |
Same behavior as tooltip.mode. Tooltips can respond to a different mode when hovering. |
axis |
x, y, xy |
Selects parameters that are used to calculate the distance from the value point to the cursor during a hover event. The default is x. Horizontal bar charts override this to y so that mode:index can select different bars. |
animationDuration |
Number |
The... |