Skip to content

Commit

Permalink
added fill type to line in options object and to radar dataset options (
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeLenaleee committed Jun 18, 2021
1 parent 2768c7d commit 8d3b64b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion types/index.esm.d.ts
Expand Up @@ -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>,
Expand Down Expand Up @@ -3330,7 +3334,7 @@ export interface ChartTypeRegistry {
};
radar: {
chartOptions: RadarControllerChartOptions;
datasetOptions: RadarControllerDatasetOptions;
datasetOptions: RadarControllerDatasetOptions & FillerControllerDatasetOptions;
defaultDataPoint: number | null;
parsedDataType: RadialParsedData;
scales: keyof RadialScaleTypeRegistry;
Expand Down

0 comments on commit 8d3b64b

Please sign in to comment.