From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Fri, 18 Jun 2021 11:20:13 +0000 (+0200) Subject: added fill type to line in options object and to radar dataset options (#9284) X-Git-Tag: v3.4.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d3b64bb3c77ab79d76bdf91c8af7fee174f75ca;p=thirdparty%2FChart.js.git added fill type to line in options object and to radar dataset options (#9284) --- diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index fd5c53848..c7c00d88c 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -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, @@ -3330,7 +3334,7 @@ export interface ChartTypeRegistry { }; radar: { chartOptions: RadarControllerChartOptions; - datasetOptions: RadarControllerDatasetOptions; + datasetOptions: RadarControllerDatasetOptions & FillerControllerDatasetOptions; defaultDataPoint: number | null; parsedDataType: RadialParsedData; scales: keyof RadialScaleTypeRegistry;