From 41667557315a92e7cbcd47dabcaa547f99a396d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kub=C3=A1t?= Date: Tue, 11 Jul 2023 08:20:59 +0200 Subject: [PATCH] Fix type of tickBorderDash in GridLineOptions --- docs/axes/styling.md | 2 +- src/types/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/axes/styling.md b/docs/axes/styling.md index 4eb9bf0b428..20c2b93f412 100644 --- a/docs/axes/styling.md +++ b/docs/axes/styling.md @@ -15,7 +15,7 @@ Namespace: `options.scales[scaleId].grid`, it defines options for the grid lines | `drawTicks` | `boolean` | | | `true` | If true, draw lines beside the ticks in the axis area beside the chart. | `lineWidth` | `number` | Yes | Yes | `1` | Stroke width of grid lines. | `offset` | `boolean` | | | `false` | If true, grid lines will be shifted to be between labels. This is set to `true` for a bar chart by default. -| `tickBorderDash` | `number[]` | | | | Length and spacing of the tick mark line. If not set, defaults to the grid line `borderDash` value. +| `tickBorderDash` | `number[]` | Yes | Yes | `[]` | Length and spacing of the tick mark line. If not set, defaults to the grid line `borderDash` value. | `tickBorderDashOffset` | `number` | Yes | Yes | | Offset for the line dash of the tick mark. If unset, defaults to the grid line `borderDashOffset` value | `tickColor` | [`Color`](../general/colors.md) | Yes | Yes | | Color of the tick line. If unset, defaults to the grid line color. | `tickLength` | `number` | | | `8` | Length in pixels that the grid lines will draw into the axis area. diff --git a/src/types/index.d.ts b/src/types/index.d.ts index 3e691e3893c..83ad302e30a 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -2971,7 +2971,7 @@ export interface GridLineOptions { /** * @default [] */ - tickBorderDash: number[]; + tickBorderDash: Scriptable; /** * @default 0 */