amis-reports
Version:
爱速搭报表,基于 ECharts 实现的图表功能组件,旨在为用户提供简单和快捷的可视化报表能力,帮助用户在爱速搭平台上快速设计常见的数据报表页和大屏报表效果页。
75 lines (74 loc) • 2.31 kB
TypeScript
import { ChartProps } from 'amis/lib/renderers/Chart';
import { IScopedContext } from 'amis-core';
import { PlainObject } from '../common/type';
import ChartReportBase from './common/ChartReportBase';
export default class ChartPercent extends ChartReportBase {
config: any;
chartUpdateDebounce: any;
constructor(props: ChartProps, context: IScopedContext);
componentDidMount(): Promise<void>;
componentDidUpdate(preProps: any): void;
componentWillUnmount(): void;
getChartConfig(newChartData?: any, chartProps?: any): {
series: {
data: any[];
min: number;
max: number;
title: any;
detail: PlainObject<any>;
type: string;
startAngle: any;
endAngle: any;
pointer: {
show: boolean;
itemStyle: {
color: string | undefined;
};
};
progress: {
show: boolean;
width: number;
itemStyle: {
color: string;
};
};
axisLine: {
show: boolean;
lineStyle: {
color: (string | number)[][];
width: number | undefined;
};
};
splitLine: {
show: boolean;
length: string | number;
distance: number;
lineStyle: {
color: string;
width: string | number;
};
};
axisTick: {
show: boolean;
splitNumber: number;
length: string | number;
distance: number | undefined;
lineStyle: {
color: string;
width: number | undefined;
};
};
axisLabel: any;
}[];
title: {
show: any;
text: any;
left: any;
textStyle: any;
backgroundColor: any;
link: any;
};
};
updateChartData(newChartData?: any, isReload?: boolean, chartProps?: any): void;
updateChartConfig(chartProps?: any): void;
}