From 96da97b59c2e22cb661b9297f1cb4ace9bb8ec9e Mon Sep 17 00:00:00 2001 From: Scott Dickerson Date: Tue, 21 Jan 2020 13:52:37 -0600 Subject: [PATCH] fix(charts): simplify the interface to match --- packages/core/src/interfaces/charts.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core/src/interfaces/charts.ts b/packages/core/src/interfaces/charts.ts index d7b4bc949e..22b674ddc2 100644 --- a/packages/core/src/interfaces/charts.ts +++ b/packages/core/src/interfaces/charts.ts @@ -35,17 +35,17 @@ export interface BaseChartOptions { */ legend?: LegendOptions; /** - * Optional function to determine whether is filled based on datasetLabel, label, and/or value + * Optional function to determine whether is filled based on datasetLabel, label, and/or data */ - getIsFilled?: (datasetLabel: any, label?: any, value?: any, data?: any, defaultFilled?: boolean) => boolean; + getIsFilled?: (datasetLabel: any, label?: any, data?: any, defaultFilled?: boolean) => boolean; /** - * Optional function to generate the fill color based on datasetLabel, label, and/or value + * Optional function to generate the fill color based on datasetLabel, label, and/or data */ - getFillColor?: (datasetLabel: any, label?: any, value?: any, data?: any, defaultFillColor?: string) => string; + getFillColor?: (datasetLabel: any, label?: any, data?: any, defaultFillColor?: string) => string; /** - * Optional function to generate the stroke color based on datasetLabel, label, and/or value + * Optional function to generate the stroke color based on datasetLabel, label, and/or data */ - getStrokeColor?: (datasetLabel: any, label?: any, value?: any, data?: any, defaultStrokeColor?: string) => string; + getStrokeColor?: (datasetLabel: any, label?: any, data?: any, defaultStrokeColor?: string) => string; /** * stylesheet options */