From: Evert Timberg Date: Mon, 15 Feb 2021 23:32:03 +0000 (-0500) Subject: Add a note about hover options (#8436) X-Git-Tag: v3.0.0-beta.11~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81e28c9895ad685b2b567a5de4b70ea591d275ae;p=thirdparty%2FChart.js.git Add a note about hover options (#8436) --- diff --git a/docs/docs/general/interactions/index.md b/docs/docs/general/interactions/index.md index ee23346bb..807298cf2 100644 --- a/docs/docs/general/interactions/index.md +++ b/docs/docs/general/interactions/index.md @@ -9,3 +9,5 @@ The interaction configuration is passed into the `options.interaction` namespace | `mode` | `string` | `'nearest'` | Sets which elements appear in the tooltip. See [Interaction Modes](./modes.md#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. + +The same options can be set into the `options.hover` namespace, in which case they will only affect the hover effect and the tooltip configuration will be kept independent.