]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update tooltip.md (#11154)
authorHubert Olender <olender.hub@gmail.com>
Thu, 23 Feb 2023 13:05:50 +0000 (14:05 +0100)
committerGitHub <noreply@github.com>
Thu, 23 Feb 2023 13:05:50 +0000 (08:05 -0500)
* Update tooltip.md

Add missing `'`

* Update tooltip.md

Improve textDirection text

docs/configuration/tooltip.md

index 03cf8a4672438e7ff54063c1655b99e8b5ac5700..fb9d784be150ff4c4bb5afbb0b0ed988d7b2babe 100644 (file)
@@ -42,7 +42,7 @@ Namespace: `options.plugins.tooltip`, the global options for the chart tooltips
 | `borderColor` | [`Color`](../general/colors.md) | `'rgba(0, 0, 0, 0)'` | Color of the border.
 | `borderWidth` | `number` | `0` | Size of the border.
 | `rtl` | `boolean` | | `true` for rendering the tooltip from right to left.
-| `textDirection` | `string` | canvas' default | This will force the text direction `'rtl' or 'ltr` on the canvas for rendering the tooltips, regardless of the css specified on the canvas
+| `textDirection` | `string` | canvas' default | This will force the text direction `'rtl'` or `'ltr'` on the canvas for rendering the tooltips, regardless of the css specified on the canvas
 | `xAlign` | `string` | `undefined` | Position of the tooltip caret in the X direction. [more](#tooltip-alignment)
 | `yAlign` | `string` | `undefined` | Position of the tooltip caret in the Y direction. [more](#tooltip-alignment)