]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
added fill type to line in options object and to radar dataset options (#9284)
authorJacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
Fri, 18 Jun 2021 11:20:13 +0000 (13:20 +0200)
committerGitHub <noreply@github.com>
Fri, 18 Jun 2021 11:20:13 +0000 (07:20 -0400)
types/index.esm.d.ts

index fd5c53848e539f22a8250a317a18fcbd207ad014..c7c00d88ce4417ef5eeabf5d98825a8b18baee4e 100644 (file)
@@ -1702,6 +1702,10 @@ export interface LineOptions extends CommonElementOptions {
    * @default false
    */
   stepped: 'before' | 'after' | 'middle' | boolean;
+  /**
+   * Both line and radar charts support a fill option on the dataset object which can be used to create area between two datasets or a dataset and a boundary, i.e. the scale origin, start or end
+   */
+  fill: FillTarget | ComplexFillTarget;
 
   segment: {
     backgroundColor: Scriptable<Color|undefined, ScriptableLineSegmentContext>,
@@ -3330,7 +3334,7 @@ export interface ChartTypeRegistry {
   };
   radar: {
     chartOptions: RadarControllerChartOptions;
-    datasetOptions: RadarControllerDatasetOptions;
+    datasetOptions: RadarControllerDatasetOptions & FillerControllerDatasetOptions;
     defaultDataPoint: number | null;
     parsedDataType: RadialParsedData;
     scales: keyof RadialScaleTypeRegistry;