mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
Fix type of tickBorderDash in GridLineOptions (#11396)
This commit is contained in:
parent
a173943e55
commit
c392a7cc8c
@ -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.
|
||||
|
2
src/types/index.d.ts
vendored
2
src/types/index.d.ts
vendored
@ -2971,7 +2971,7 @@ export interface GridLineOptions {
|
||||
/**
|
||||
* @default []
|
||||
*/
|
||||
tickBorderDash: number[];
|
||||
tickBorderDash: Scriptable<number[], ScriptableScaleContext>;
|
||||
/**
|
||||
* @default 0
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user