Chart.js/docs/general/interactions
Jukka Kurkela b83f64b16e Rewrite animation logic (#6845)
* Rewrite animation logic

* Review update 1

* Review update 2

* Review update 3

* Add 'none' to api.md
2019-12-27 17:13:24 -05:00
..
events.md Fix typos and make the docs consistent (#6020) 2019-01-29 13:34:16 +01:00
modes.md Remove deprecated interaction modes (#6625) 2019-10-28 18:11:38 -04:00
README.md Rewrite animation logic (#6845) 2019-12-27 17:13:24 -05:00

Interactions

The hover configuration is passed into the options.hover namespace. The global hover configuration is at Chart.defaults.global.hover. To configure which events trigger chart interactions, see events.

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