Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Jun 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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