From 8d3b64bb3c77ab79d76bdf91c8af7fee174f75ca Mon Sep 17 00:00:00 2001 From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Fri, 18 Jun 2021 13:20:13 +0200 Subject: [PATCH] added fill type to line in options object and to radar dataset options (#9284) --- types/index.esm.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.47.2