]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Add a note about hover options (#8436)
authorEvert Timberg <evert.timberg+github@gmail.com>
Mon, 15 Feb 2021 23:32:03 +0000 (18:32 -0500)
committerGitHub <noreply@github.com>
Mon, 15 Feb 2021 23:32:03 +0000 (18:32 -0500)
docs/docs/general/interactions/index.md

index ee23346bb56b3182d1b93c825ee5b1c75fab5ad9..807298cf271bbd415fd7d31a15b4f585906cea48 100644 (file)
@@ -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.