@alicloud/cloud-charts
Version:

348 lines (347 loc) • 8.63 kB
TypeScript
/**
* 判断是否无数据的方法分类
* COMMON {name: xxx, data: [xxx]}
* ARRAY [{x: ... , y: ...}]
* CHILDREN { children: [xxx]}
* GRAPH { nodes: [xxx], links: [xxx]}
*/
export declare const EmptyJudgeType: {
COMMON: string;
ARRAY: string;
CHILDREN: string;
GRAPH: string;
};
declare const getEmptyDataType: () => {
G2Bar: {
emptyJudge: string;
replacement: {
data: any[];
config: {
xAxis: {
min: number;
max: number;
label: boolean;
};
yAxis: {
min: number;
max: number;
label: boolean;
};
padding: number;
};
};
fillBackground: boolean;
};
G2Box: {
emptyJudge: string;
replacement: {
data: any[];
config: {
xAxis: {
min: number;
max: number;
label: boolean;
};
yAxis: {
min: number;
max: number;
label: boolean;
};
padding: number;
};
};
fillBackground: boolean;
};
G2Wcandlestick: {
emptyJudge: string;
replacement: {
data: any[];
config: {
xAxis: {
min: number;
max: number;
label: boolean;
};
yAxis: {
min: number;
max: number;
label: boolean;
};
padding: number;
};
};
fillBackground: boolean;
};
G2Funnel: {
emptyJudge: string;
replacement: {
data: any[];
config: {
padding: number;
xAxis: boolean;
yAxis: boolean;
tooltip: boolean;
legend: boolean;
};
};
fillBackground: boolean;
};
G2Heatmap: {
emptyJudge: string;
replacement: {
data: any[];
config: {
padding: number;
xAxis: boolean;
yAxis: boolean;
tooltip: boolean;
legend: boolean;
};
};
fillBackground: boolean;
};
G2Hierarchy: {
emptyJudge: string;
replacement: {
data: {
name: string;
children: any[];
};
config: {
padding: number;
xAxis: boolean;
yAxis: boolean;
tooltip: boolean;
legend: boolean;
colors: string;
};
};
fillBackground: boolean;
};
G2Histogram: {
emptyJudge: string;
replacement: {
data: any[];
config: {
xAxis: {
min: number;
max: number;
label: boolean;
};
yAxis: {
min: number;
max: number;
label: boolean;
};
padding: number;
};
};
fillBackground: boolean;
};
G2Line: {
emptyJudge: string;
replacement: {
data: any[];
config: {
xAxis: {
min: number;
max: number;
label: boolean;
};
yAxis: {
min: number;
max: number;
label: boolean;
};
padding: number;
};
};
fillBackground: boolean;
};
G2LineBar: {
emptyJudge: string;
replacement: {
data: any[];
config: {
xAxis: {
min: number;
max: number;
label: boolean;
};
yAxis: {
min: number;
max: number;
label: boolean;
};
padding: number;
};
};
fillBackground: boolean;
};
G2LineScatter: {
emptyJudge: string;
replacement: {
data: any[];
config: {
xAxis: {
min: number;
max: number;
label: boolean;
};
yAxis: {
min: number;
max: number;
label: boolean;
};
padding: number;
};
};
fillBackground: boolean;
};
G2MultiPie: {
emptyJudge: string;
replacement: {
data: {
children: {
name: string;
value: number;
}[];
};
config: {
legend: boolean;
tooltip: boolean;
colors: string;
label: boolean;
};
};
fillBackground: boolean;
};
G2Nightingale: {
emptyJudge: string;
replacement: {
data: {
x: string;
y: number;
}[];
config: {
legend: boolean;
tooltip: boolean;
colors: string;
label: boolean;
};
};
fillBackground: boolean;
};
G2Pie: {
emptyJudge: string;
replacement: {
data: {
x: string;
y: number;
}[];
config: {
legend: boolean;
tooltip: boolean;
colors: string;
label: boolean;
};
};
fillBackground: boolean;
};
G2Radar: {
emptyJudge: string;
replacement: {
data: {
x: string;
y: number;
}[];
config: {
xAxis: {
label: boolean;
};
yAxis: {
min: number;
max: number;
label: boolean;
};
legend: boolean;
tooltip: boolean;
colors: string;
};
};
fillBackground: boolean;
};
G2Rectangle: {
emptyJudge: string;
replacement: {
data: {
x: number;
y: number;
}[];
config: {
padding: number;
xAxis: boolean;
yAxis: boolean;
tooltip: boolean;
legend: boolean;
};
};
fillBackground: boolean;
};
G2Sankey: {
emptyJudge: string;
replacement: {
data: {
nodes: any[];
links: any[];
};
config: {
padding: number;
xAxis: boolean;
yAxis: boolean;
tooltip: boolean;
legend: boolean;
};
};
fillBackground: boolean;
};
G2Scatter: {
emptyJudge: string;
replacement: {
data: any[];
config: {
xAxis: {
min: number;
max: number;
label: boolean;
};
yAxis: {
min: number;
max: number;
label: boolean;
};
padding: number;
};
};
fillBackground: boolean;
};
G2Treemap: {
emptyJudge: string;
replacement: {
data: {
name: string;
children: any[];
};
config: {
padding: number;
xAxis: boolean;
yAxis: boolean;
tooltip: boolean;
legend: boolean;
colors: string;
};
};
fillBackground: boolean;
};
};
export default getEmptyDataType;