@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
15 lines (14 loc) • 1.12 kB
TypeScript
import { IChartDataset } from '@qn-pandora/app-sdk';
import { EColorMode } from '@qn-pandora/pandora-app-component';
import { IColor } from '../../../base-pandora-visualization/services/chart-style/charts/base';
import { TThemeOption, ChartType } from '../../../constants';
export declare function getMetricColors(themeOption: TThemeOption, chartType: ChartType, currentMetrics: string[], colors: IColor[], dataset: IChartDataset, maxSlices: number, sort?: boolean): {
name: string;
color: any;
}[];
export declare function getPieBucketColors(themeOption: TThemeOption, chartType: ChartType, dataset: IChartDataset, metrics: string[], buckets: string[], maxSlices: number, colors: IColor[], colorMode: EColorMode, sort?: boolean): IColor[];
export declare function getPieData(dataset: IChartDataset, metrics: string[], buckets: string[], isDateSeries: boolean, maxSlices: number, sort?: boolean): {
value: number;
name: string | number;
}[];
export declare function getPieBucketColorWithData(themeOption: TThemeOption, chartType: ChartType, data: any[], colors: IColor[], colorMode: EColorMode): IColor[];