Skip to content

Commit c392a7c

Browse files
authored
Fix type of tickBorderDash in GridLineOptions (#11396)
1 parent a173943 commit c392a7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/axes/styling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Namespace: `options.scales[scaleId].grid`, it defines options for the grid lines
1515
| `drawTicks` | `boolean` | | | `true` | If true, draw lines beside the ticks in the axis area beside the chart.
1616
| `lineWidth` | `number` | Yes | Yes | `1` | Stroke width of grid lines.
1717
| `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.
18-
| `tickBorderDash` | `number[]` | | | | Length and spacing of the tick mark line. If not set, defaults to the grid line `borderDash` value.
18+
| `tickBorderDash` | `number[]` | Yes | Yes | `[]` | Length and spacing of the tick mark line. If not set, defaults to the grid line `borderDash` value.
1919
| `tickBorderDashOffset` | `number` | Yes | Yes | | Offset for the line dash of the tick mark. If unset, defaults to the grid line `borderDashOffset` value
2020
| `tickColor` | [`Color`](../general/colors.md) | Yes | Yes | | Color of the tick line. If unset, defaults to the grid line color.
2121
| `tickLength` | `number` | | | `8` | Length in pixels that the grid lines will draw into the axis area.

src/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2971,7 +2971,7 @@ export interface GridLineOptions {
29712971
/**
29722972
* @default []
29732973
*/
2974-
tickBorderDash: number[];
2974+
tickBorderDash: Scriptable<number[], ScriptableScaleContext>;
29752975
/**
29762976
* @default 0
29772977
*/

0 commit comments

Comments
 (0)