UNPKG

ag-charts-community

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

49 lines (48 loc) 1.97 kB
import { AgChartThemePalette, AgChartThemeOptions } from "../agChartOptions"; import { Series } from "../series/series"; declare function arrayMerge(target: any, source: any, options: any): any; declare function isMergeableObject(value: any): boolean; export declare const mergeOptions: { arrayMerge: typeof arrayMerge; isMergeableObject: typeof isMergeableObject; }; export declare class ChartTheme { readonly palette: AgChartThemePalette; protected getPalette(): AgChartThemePalette; readonly config: any; private static fontFamily; private static getAxisDefaults; private static getSeriesDefaults; private static getBarSeriesDefaults; private static getCartesianSeriesMarkerDefaults; private static getChartDefaults; private static readonly cartesianDefaults; static readonly defaults: any; constructor(options?: AgChartThemeOptions); private static cartesianSeriesTypes; private static polarSeriesTypes; private static hierarchySeriesTypes; private static seriesTypes; private createChartConfigPerSeries; getConfig<T = any>(path: string, defaultValue?: T): T; /** * Meant to be overridden in subclasses. For example: * ``` * getDefaults() { * const subclassDefaults = { ... }; * return this.mergeWithParentDefaults(subclassDefaults); * } * ``` */ protected getDefaults(): any; protected mergeWithParentDefaults(defaults: any): any; setSeriesColors(series: Series, seriesOptions: any, firstColorIndex: number): number; private getYKeyCount; /** * This would typically correspond to the number of dependent variables the series plots. * If the color count is not fixed, for example it's data-dependent with one color per data point, * return Infinity to fetch all unique colors and manage them in the series. */ getSeriesColorCount(seriesOptions: any): number; } export {};