]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update index.d.ts (#10579)
authorJohn Williams Metservice <83933275+jwilliams-met@users.noreply.github.com>
Wed, 17 Aug 2022 22:43:46 +0000 (10:43 +1200)
committerGitHub <noreply@github.com>
Wed, 17 Aug 2022 22:43:46 +0000 (18:43 -0400)
Allow nulls to be passed to barChart data to allow datasets to spanGaps.

types/index.d.ts

index c79f19cbea02e43faa7e2b027dd3744d79f4400b..5d11661133a6b237d0f0be3e617e71522dcf15c0 100644 (file)
@@ -3539,7 +3539,7 @@ export interface ChartTypeRegistry {
   bar: {
     chartOptions: BarControllerChartOptions;
     datasetOptions: BarControllerDatasetOptions;
-    defaultDataPoint: number;
+    defaultDataPoint: number | null;
     metaExtensions: {};
     parsedDataType: BarParsedData,
     scales: keyof CartesianScaleTypeRegistry;