@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
15 lines (14 loc) • 897 B
TypeScript
import { IChartDataset } from '@qn-pandora/app-sdk';
import { EColorMode } from '@qn-pandora/pandora-app-component';
import { ISeriesPiece } from '../../components/Charts/transforms/two-d';
import { IColor } from '../../base-pandora-visualization/services/chart-style/charts/base';
import { TThemeOption } from '../../constants/theme-interface';
import { ChartType } from '../../constants/chart-style';
export declare function getColors(themeOption: TThemeOption, dataset: IChartDataset, chartStyleService: any): IColor[];
export declare const toTwdColors: (themeOption: TThemeOption, chartType: ChartType, data: ISeriesPiece[][] | undefined, displayColors: IColor[], isOverlap: boolean | undefined, length: number | undefined, colorMode: EColorMode) => {
name: string;
fieldType: string;
isOverlap: boolean;
color: string | undefined;
isCustomColor: boolean | undefined;
}[];