From: stockiNail Date: Thu, 24 Nov 2022 12:47:17 +0000 (+0100) Subject: Add stepSize option to time scale options types (#10910) X-Git-Tag: v4.1.0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=784216130af7c1a15ad45774d54b34bc090b86d7;p=thirdparty%2FChart.js.git Add stepSize option to time scale options types (#10910) --- diff --git a/types/index.d.ts b/types/index.d.ts index 986b1cfec..435d6bdb4 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -3250,6 +3250,11 @@ export type TimeScaleOptions = Omit & { * @default 'auto' */ source: 'labels' | 'auto' | 'data'; + /** + * The number of units between grid lines. + * @default 1 + */ + stepSize: number; }; }; diff --git a/types/tests/scales/options.ts b/types/tests/scales/options.ts index 3b545d4e1..086435b6e 100644 --- a/types/tests/scales/options.ts +++ b/types/tests/scales/options.ts @@ -17,6 +17,9 @@ const chart = new Chart('test', { type: 'time', time: { unit: 'year' + }, + ticks: { + stepSzie: 1 } }, x1: {