UNPKG

utils-echart

Version:

Echart component

588 lines (587 loc) 14.8 kB
import { symbolShape } from "../assets/enum"; /** 折线 */ export declare class Line { /** 是否显示拐点 */ static showSymbol: boolean; /** 拐点形状 */ static symbol: symbolShape; /** 拐点大小 */ static symbolSize: number; /** * 获取单折线数据 * @param xAxis x轴 * @param range 数据范围 * @returns obj */ static getSingleLineData(xAxis: string[], range?: number[]): any; /** * 获取多折线数据 * @param xAxis x轴 * @param name 名称 * @param range 数据范围 * @returns obj */ static getMultipleLineData(xAxis: string[], name: string[], range?: number[]): { xAxis: string[]; data: {}[]; }; /** 拐点设置 */ static setSymbol(): { showSymbol: boolean; symbol: symbolShape; symbolSize: number; }; /** * 折线0 * @param data 数据 * @param color 颜色 * @returns option */ static line0(data?: any, color?: any): { backgroundColor: any; color: any; grid: any; tooltip: { trigger: string; }; title: any; legend: any; xAxis: { name: string; type: string; data: string[]; splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; boundaryGap: boolean; axisLabel: { fontSize: number; color: any; }; }; yAxis: { name: string; type: string; splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; axisLabel: { fontSize: number; color: any; }; }; series: { showSymbol: boolean; symbol: symbolShape; symbolSize: number; data: unknown[]; type: string; label: { show: boolean; position: string; color: any; }; }[]; }; /** * 折线1 * @param data 数据 * @param colorArr 颜色组 * @returns option */ static line1(data?: any, colorArr?: any): { backgroundColor: any; grid: any; tooltip: { trigger: string; }; title: any; legend: any; xAxis: { boundaryGap: boolean; type: string; data: string[]; splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; axisLabel: { fontSize: number; color: any; }; }; yAxis: { splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; axisLabel: { fontSize: number; color: any; }; }; series: { lineStyle: { color: any; }; showSymbol: boolean; symbol: symbolShape; symbolSize: number; name: string; type: string; data: unknown[]; }[]; }; /** * 折线2 * @param data 数据 * @param color 颜色 * @returns option */ static line2(data?: any, color?: any): { backgroundColor: any; grid: any; tooltip: { trigger: string; }; title: any; legend: any; xAxis: { boundaryGap: boolean; type: string; data: string[]; splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; axisLabel: { fontSize: number; color: any; }; }; visualMap: { type: string; show: boolean; dimension: number; seriesIndex: number; pieces: {}[]; axisLabel: { fontSize: number; color: any; }; }; yAxis: { type: string; splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; }; series: { showSymbol: boolean; symbol: symbolShape; symbolSize: number; data: unknown[]; type: string; lineStyle: { color: any; width: number; }; markLine: { symbol: string[]; label: { show: boolean; }; data: { xAxis: number; }[]; }; }[]; }; /** * 折线3 * @param data 数据 * @param color 颜色 * @returns option */ static line3(data?: any, color?: any): { backgroundColor: any; color: any; grid: any; tooltip: { trigger: string; }; legend: any; title: any; xAxis: { boundaryGap: boolean; name: string; type: string; data: string[]; splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; axisLabel: { fontSize: number; color: any; }; }; yAxis: { name: string; type: string; splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; axisLabel: { fontSize: number; color: any; }; }; series: { showSymbol: boolean; symbol: symbolShape; symbolSize: number; data: unknown[]; type: string; areaStyle: { color: any; origin: string; }; }[]; }; /** * 折线4 * @param data 数据 * @param colorArr 颜色组 * @returns option */ static line4(data?: any, colorArr?: any[]): { backgroundColor: any; color: any; grid: any; tooltip: { trigger: string; }; title: any; legend: any; xAxis: { boundaryGap: boolean; name: string; type: string; data: string[]; splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; axisLabel: { fontSize: number; color: any; }; }; yAxis: { name: string; type: string; splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; axisLabel: { fontSize: number; color: any; }; }; series: { showSymbol: boolean; symbol: symbolShape; symbolSize: number; data: unknown[]; type: string; areaStyle: { color: any; origin: string; }; }[]; }; /** * 折线5 * @param data 数据 * @param color 颜色 * @returns option */ static line5(data?: any, color?: string): { backgroundColor: any; grid: any; tooltip: any; title: any; xAxis: { boundaryGap: boolean; name: string; type: string; data: string[]; splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; axisLabel: { fontSize: number; color: any; }; }; yAxis: { name: string; type: string; splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; axisLabel: { fontSize: number; color: any; }; }; series: { data: unknown[]; type: string; areaStyle: { color: any; }; lineStyle: { color: string; width: number; }; showSymbol: boolean; symbol: string; symbolSize: number; smooth: boolean; }[]; triggerEvent: boolean; }; /** * 折线6 * @returns option */ static line6(): { backgroundColor: any; grid: any; tooltip: { trigger: string; axisPointer: { type: string; animation: boolean; label: { backgroundColor: string; borderColor: string; borderWidth: number; shadowBlur: number; shadowOffsetX: number; shadowOffsetY: number; color: string; }; }; }; /** 标题 */ title: {}; /** 图例 */ legend: any; xAxis: { type: string; data: string[]; boundaryGap: boolean; axisLabel: { fontSize: number; color: any; }; }; yAxis: { splitNumber: number; axisLabel: { fontSize: number; color: any; }; }; series: ({ name: string; type: string; data: number[]; lineStyle: { opacity: number; }; stack: string; symbol: string; areaStyle?: undefined; itemStyle?: undefined; } | { name: string; type: string; data: number[]; lineStyle: { opacity: number; }; areaStyle: { color: any; }; stack: string; symbol: string; itemStyle?: undefined; } | { name: string; type: string; data: number[]; itemStyle: { color: any; }; symbol: string; lineStyle?: undefined; stack?: undefined; areaStyle?: undefined; })[]; }; /** * 多折线0 * @param obj 数据 * @param colorArr 颜色组 * @returns option */ static multipleLine0(obj?: any, colorArr?: any[]): { backgroundColor: any; color: any; grid: any; title: any; legend: any; tooltip: { trigger: string; }; xAxis: { type: string; data: any; splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; boundaryGap: boolean; axisLabel: { fontSize: number; color: any; }; }; yAxis: { splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; axisLabel: { fontSize: number; color: any; }; }; series: any[]; }; /** * 多折线1 * @param obj 数据 * @param colorArr 颜色组 * @returns option */ static multipleLine1(obj?: any, colorArr?: any[]): { backgroundColor: any; title: any; grid: any; color: any; legend: any; tooltip: { trigger: string; }; xAxis: { type: string; data: any; splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; boundaryGap: boolean; axisLabel: { fontSize: number; color: any; }; }; yAxis: { splitLine: { show: any; lineStyle: { color: any; width: any; type: any; }; }; axisLabel: { fontSize: number; color: any; }; }; series: any[]; }; }