UNPKG

rp-data-chart

Version:

Rabbitpre data-chart components lib

129 lines (128 loc) 3.49 kB
export declare function pieItemStyle(color: string): { color: string; emphasis: { shadowBlur: number; }; }; export declare type AnyObjArr = Array<Record<string, any>>; export declare function setPieData(name: string, data: AnyObjArr, isNone?: boolean): { tooltip: { trigger: string; formatter: string; }; series: { name: string; type: string; radius: number[]; animation: boolean; hoverOffset: number; label: { normal: { formatter: string; color: string; rich: { a: { color: string; lineHeight: number; align: string; }; }; }; }; data: Record<string, any>[]; itemStyle: Record<string, any>; animationType: string; }[]; }; export declare function mathRest(arr: AnyObjArr): { shareType: string; count: number; rate: number; }; export declare function handlePieData(name: string, data: AnyObjArr, defaultData: AnyObjArr): { tooltip: { trigger: string; formatter: string; }; series: { name: string; type: string; radius: number[]; animation: boolean; hoverOffset: number; label: { normal: { formatter: string; color: string; rich: { a: { color: string; lineHeight: number; align: string; }; }; }; }; data: Record<string, any>[]; itemStyle: Record<string, any>; animationType: string; }[]; }; export declare function setSharePathDirectData(name: string, data: AnyObjArr): { tooltip: { trigger: string; formatter: string; }; series: { name: string; type: string; radius: number[]; animation: boolean; hoverOffset: number; label: { normal: { formatter: string; color: string; rich: { a: { color: string; lineHeight: number; align: string; }; }; }; }; data: Record<string, any>[]; itemStyle: Record<string, any>; animationType: string; }[]; }; export declare function setSharePathSourceData(name: string, data: AnyObjArr): { tooltip: { trigger: string; formatter: string; }; series: { name: string; type: string; radius: number[]; animation: boolean; hoverOffset: number; label: { normal: { formatter: string; color: string; rich: { a: { color: string; lineHeight: number; align: string; }; }; }; }; data: Record<string, any>[]; itemStyle: Record<string, any>; animationType: string; }[]; };