Skip to content

Commit

Permalink
Add stepSize option to time scale options types (#10910)
Browse files Browse the repository at this point in the history
  • Loading branch information
stockiNail committed Nov 24, 2022
1 parent 667b28b commit 7842161
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/index.d.ts
Expand Up @@ -3250,6 +3250,11 @@ export type TimeScaleOptions = Omit<CartesianScaleOptions, 'min' | 'max'> & {
* @default 'auto'
*/
source: 'labels' | 'auto' | 'data';
/**
* The number of units between grid lines.
* @default 1
*/
stepSize: number;
};
};

Expand Down
3 changes: 3 additions & 0 deletions types/tests/scales/options.ts
Expand Up @@ -17,6 +17,9 @@ const chart = new Chart('test', {
type: 'time',
time: {
unit: 'year'
},
ticks: {
stepSzie: 1

This comment has been minimized.

Copy link
@mokritalasi

mokritalasi Nov 25, 2022

typo

}
},
x1: {
Expand Down

0 comments on commit 7842161

Please sign in to comment.