From 7d877df909b275c6d4bf9b0a151604834b0afcb7 Mon Sep 17 00:00:00 2001 From: adityajai119 Date: Sun, 8 Nov 2026 16:30:17 +0530 Subject: [PATCH] docs: fix tooltip titleSpacing, bodySpacing and footerSpacing descriptions --- docs/configuration/tooltip.md | 6 +++--- src/types/index.d.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/configuration/tooltip.md b/docs/configuration/tooltip.md index 8e6e0539e60..bfb4ff72a99 100644 --- a/docs/configuration/tooltip.md +++ b/docs/configuration/tooltip.md @@ -22,16 +22,16 @@ The `titleFont`, `bodyFont` and `footerFont` options default to the `Chart.defau | `titleColor` | [`Color`](../general/colors.md) | `'#fff'` | Color of title text. | `titleFont` | `Font` | `{weight: 'bold'}` | See [Fonts](../general/fonts.md). | `titleAlign` | `string` | `'left'` | Horizontal alignment of the title text lines. [more...](#text-alignment) -| `titleSpacing` | `number` | `2` | Spacing to add to top and bottom of each title line. +| `titleSpacing` | `number` | `2` | Spacing to add between title lines. | `titleMarginBottom` | `number` | `6` | Margin to add on bottom of title section. | `bodyColor` | [`Color`](../general/colors.md) | `'#fff'` | Color of body text. | `bodyFont` | `Font` | `{}` | See [Fonts](../general/fonts.md). | `bodyAlign` | `string` | `'left'` | Horizontal alignment of the body text lines. [more...](#text-alignment) -| `bodySpacing` | `number` | `2` | Spacing to add to top and bottom of each tooltip item. +| `bodySpacing` | `number` | `2` | Spacing to add between body lines. | `footerColor` | [`Color`](../general/colors.md) | `'#fff'` | Color of footer text. | `footerFont` | `Font` | `{weight: 'bold'}` | See [Fonts](../general/fonts.md). | `footerAlign` | `string` | `'left'` | Horizontal alignment of the footer text lines. [more...](#text-alignment) -| `footerSpacing` | `number` | `2` | Spacing to add to top and bottom of each footer line. +| `footerSpacing` | `number` | `2` | Spacing to add between footer lines. | `footerMarginTop` | `number` | `6` | Margin to add before drawing the footer. | `padding` | [`Padding`](../general/padding.md) | `6` | Padding inside the tooltip. | `caretPadding` | `number` | `2` | Extra distance to move the end of the tooltip arrow away from the tooltip point. diff --git a/src/types/index.d.ts b/src/types/index.d.ts index 9427f601d53..62a8b2db4d6 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -2841,7 +2841,7 @@ export interface TooltipOptions extends Cor */ titleFont: ScriptableAndScriptableOptions, ScriptableTooltipContext>; /** - * Spacing to add to top and bottom of each title line. + * Spacing to add between title lines. * @default 2 */ titleSpacing: Scriptable>; @@ -2856,7 +2856,7 @@ export interface TooltipOptions extends Cor */ titleAlign: Scriptable>; /** - * Spacing to add to top and bottom of each tooltip item. + * Spacing to add between body lines. * @default 2 */ bodySpacing: Scriptable>; @@ -2876,7 +2876,7 @@ export interface TooltipOptions extends Cor */ bodyAlign: Scriptable>; /** - * Spacing to add to top and bottom of each footer line. + * Spacing to add between footer lines. * @default 2 */ footerSpacing: Scriptable>;