added fill type to line in options object and to radar dataset options (#9284)

This commit is contained in:
Jacco van den Berg 2021-06-18 13:20:13 +02:00 committed by GitHub
parent 2768c7dea7
commit 8d3b64bb3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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;