/** The charting model layer which includes mainly the chart data and options, * as well as some misc. information to be shared among components */ export declare class ChartModel { /** * Function to be called when data or options update within the model * @type Function */ protected updateCallback: Function; protected services: any; protected state: any; /** * A list of all the data groups that have existed within the lifetime of the chart * @type string[] */ protected allDataGroups: string[]; protected colorScale: any; constructor(services: any); getDisplayData(): any; getData(): any; isDataEmpty(): boolean; /** * * @param newData The new raw data to be set */ setData(newData: any): any[]; getDataGroups(): any; getActiveDataGroups(): any; getDataGroupNames(): any; getActiveDataGroupNames(): any; getGroupedData(): { name: string; data: any; }[]; getDataValuesGroupedByKeys(): any; getStackedData({ percentage }?: { percentage: boolean; }): any[][]; /** * @return {Object} The chart's options */ getOptions(): any; set(newState: any, skipUpdate?: boolean): void; get(property?: string): any; /** * * @param newOptions New options to be set */ setOptions(newOptions: any): void; /** * * Updates miscellanous information within the model * such as the color scales, or the legend data labels */ update(): void; setUpdateCallback(cb: Function): void; toggleDataLabel(changedLabel: string): void; /** * Should the data point be filled? * @param group * @param key * @param value * @param defaultFilled the default for this chart */ getIsFilled(group: any, key?: any, data?: any, defaultFilled?: boolean): any; getFillColor(group: any, key?: any, data?: any): any; getStrokeColor(group: any, key?: any, data?: any): any; getFillScale(): any; /** * Converts data provided in the older format to tabular * */ protected transformToTabularData(data: any): any[]; protected getTabularData(data: any): any[]; protected sanitize(data: any): any[]; protected updateAllDataGroups(): void; protected generateDataGroups(data: any): { name: string; status: Number; }[]; protected setColorScale(): void; }