]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Docs/broken link (#8863)
authorJacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
Fri, 9 Apr 2021 21:06:18 +0000 (23:06 +0200)
committerGitHub <noreply@github.com>
Fri, 9 Apr 2021 21:06:18 +0000 (17:06 -0400)
* Change tabs from area samples to buttons to switch to be in line with other samples, change linewith of extra line datasets to default instead of 1 to be in line with all other lines in the sampels

* fix few broken links in docs

docs/configuration/interactions.md
docs/configuration/tooltip.md

index 38ddb0fd516fb1a0d1f08d1a6981931b9fee0a68..32824099b98aa88eb1b17248f320e04f637977d7 100644 (file)
@@ -1,10 +1,10 @@
 # Interactions
 
-Namespace: `options.interaction`, the global interaction configuration is at `Chart.defaults.interaction`. To configure which events trigger chart interactions, see [events](events.md#events).
+Namespace: `options.interaction`, the global interaction configuration is at `Chart.defaults.interaction`. To configure which events trigger chart interactions, see [events](#events).
 
 | Name | Type | Default | Description
 | ---- | ---- | ------- | -----------
-| `mode` | `string` | `'nearest'` | Sets which elements appear in the interaction. See [Interaction Modes](modes.md#interaction-modes) for details.
+| `mode` | `string` | `'nearest'` | Sets which elements appear in the interaction. See [Interaction Modes](#modes) for details.
 | `intersect` | `boolean` | `true` | if true, the interaction 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.
 
index 5f0832d5cc0690ee5f24d409af81cdeee2e3b8ec..1375f50cbb3ec98c2965de2420a7bc81f4c44676 100644 (file)
@@ -8,7 +8,7 @@ Namespace: `options.plugins.tooltip`, the global options for the chart tooltips
 | ---- | ---- | ------- | -----------
 | `enabled` | `boolean` | `true` | Are on-canvas tooltips enabled?
 | `external` | `function` | `null` | See [external tooltip](#external-custom-tooltips) section.
-| `mode` | `string` | `interaction.mode` | Sets which elements appear in the tooltip. [more...](interactions/modes.md#interaction-modes).
+| `mode` | `string` | `interaction.mode` | Sets which elements appear in the tooltip. [more...](interactions.md#modes).
 | `intersect` | `boolean` | `interaction.intersect` | If true, the tooltip mode applies only when the mouse position intersects with an element. If false, the mode will be applied at all times.
 | `position` | `string` | `'average'` | The mode for positioning the tooltip. [more...](#position-modes)
 | `callbacks` | `object` | | See the [callbacks section](#tooltip-callbacks).