utils-echart
Version:
Echart component
218 lines (217 loc) • 5.66 kB
TypeScript
/** 混合图表 */
export declare class MixCharts {
/**
* 获取混合图表数据
* @param xAxis x轴
* @param name 名称
* @param range 数据范围
* @returns obj
*/
static getMixChartsData(xAxis: string[], name: string[], range?: number[]): {
xAxis: string[];
data: {}[];
};
/**
* 混合图表0
* @param obj 数据
* @param colorArr 颜色组
* @returns option
*/
static mixCharts0(obj?: any, colorArr?: any[]): {
backgroundColor: any;
color: any;
legend: any;
grid: any;
tooltip: {
trigger: string;
};
xAxis: {
type: string;
data: any;
axisLine: {
show: boolean;
};
axisTick: {
show: boolean;
};
splitLine: {
show: any;
lineStyle: {
color: any;
width: any;
type: any;
};
};
};
yAxis: ({
type: string;
axisLine: {
show: boolean;
};
splitLine: {
show: any;
lineStyle: {
color: any;
width: any;
type: any;
};
};
alignTicks?: undefined;
axisLabel?: undefined;
} | {
type: string;
alignTicks: boolean;
axisLine: {
show: boolean;
};
splitLine: {
show: boolean;
};
axisLabel: {
show: boolean;
formatter: string;
};
})[];
series: ({
name: any;
data: any;
type: string;
smooth: boolean;
yAxisIndex: number;
itemStyle: {
color: any;
};
barMaxWidth?: undefined;
} | {
name: any;
data: any;
type: string;
barMaxWidth: number;
yAxisIndex: number;
itemStyle: {
color: any;
};
smooth?: undefined;
})[];
};
/**
* 混合图表1
* @param obj 数据
* @param name 系列名称
* @param colorArr 颜色组
* @returns option
*/
static mixCharts1(): {
backgroundColor: any;
color: any;
tooltip: {
trigger: string;
axisPointer: {
type: string;
};
};
legend: {
right: string;
top: string;
icon: string;
itemGap: number;
itemHeight: number;
itemWidth: number;
textStyle: {
fontSize: number;
color: any;
};
};
grid: any;
yAxis: ({
type: string;
axisLabel: {
color: string;
fontSize: number;
show?: undefined;
formatter?: undefined;
};
splitLine: {
lineStyle: {
color: string[];
};
show?: undefined;
};
alignTicks?: undefined;
axisLine?: undefined;
} | {
type: string;
alignTicks: boolean;
axisLine: {
show: boolean;
};
splitLine: {
show: boolean;
lineStyle?: undefined;
};
axisLabel: {
show: boolean;
color: string;
formatter: string;
fontSize: number;
};
})[];
xAxis: {
type: string;
axisLine: {
show: boolean;
};
axisLabel: {
color: string;
};
axisTick: {
alignWithLabel: boolean;
};
data: string[];
};
series: ({
name: string;
type: string;
stack: string;
barWidth: number;
yAxisIndex: number;
emphasis: {
focus: string;
};
itemStyle: {
borderWidth: number;
borderColor: string;
};
data: number[];
smooth?: undefined;
showSymbol?: undefined;
} | {
name: string;
type: string;
smooth: number;
yAxisIndex: number;
showSymbol: boolean;
data: number[];
stack?: undefined;
barWidth?: undefined;
emphasis?: undefined;
itemStyle?: undefined;
} | {
name: string;
type: string;
stack: string;
yAxisIndex: number;
emphasis: {
focus: string;
};
itemStyle: {
borderWidth: number;
borderColor: string;
};
data: number[];
barWidth?: undefined;
smooth?: undefined;
showSymbol?: undefined;
})[];
};
}