]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix type of tickBorderDash in GridLineOptions (#11396)
authorskopz356 <36794259+skopz356@users.noreply.github.com>
Tue, 11 Jul 2023 18:32:10 +0000 (20:32 +0200)
committerGitHub <noreply@github.com>
Tue, 11 Jul 2023 18:32:10 +0000 (14:32 -0400)
docs/axes/styling.md
src/types/index.d.ts

index 4eb9bf0b428126f9c69aacc42ee175caf6ceb9ec..20c2b93f412498a6f83dfb6eb191d11a725e9f84 100644 (file)
@@ -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.
index 3e691e3893c8f563cb89eeea998dfec85ed31e23..83ad302e30ac82a84255fd2b8d9554d0dd801343 100644 (file)
@@ -2971,7 +2971,7 @@ export interface GridLineOptions {
   /**
    * @default []
    */
-  tickBorderDash: number[];
+  tickBorderDash: Scriptable<number[], ScriptableScaleContext>;
   /**
    * @default 0
    */