|
@@ -1806,3 +1806,70 @@ function getListData(queryParam = {}) {
|
|
// 如果series 对象有name 值,则 legend可以不用写data
|
|
// 如果series 对象有name 值,则 legend可以不用写data
|
|
itemGap: 20,
|
|
itemGap: 20,
|
|
itemHeight: 2,
|
|
itemHeight: 2,
|
|
|
|
+ itemWidth: 15,
|
|
|
|
+ icon: 'rect',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: "#aaa"
|
|
|
|
+ },
|
|
|
|
+ top: "bottom",
|
|
|
|
+ },
|
|
|
|
+ grid: {
|
|
|
|
+ top: "0%",
|
|
|
|
+ left: "1%",
|
|
|
|
+ right: "1%",
|
|
|
|
+ bottom: "15%",
|
|
|
|
+ show: true, // 显示边框
|
|
|
|
+ borderWidth: '0', //去除边框
|
|
|
|
+ containLabel: true // 包含刻度文字在内
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ xAxis: {
|
|
|
|
+ type: "category",
|
|
|
|
+ boundaryGap: false,
|
|
|
|
+ data: xData,
|
|
|
|
+ axisTick: {
|
|
|
|
+ show: false // 去除刻度线
|
|
|
|
+ },
|
|
|
|
+ axisLabel: {
|
|
|
|
+ color: "#AADDFF" // 文本颜色
|
|
|
|
+ },
|
|
|
|
+ axisLine: {
|
|
|
|
+ show: false // 去除轴线
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ yAxis: {
|
|
|
|
+ type: "value",
|
|
|
|
+ axisTick: {
|
|
|
|
+ show: false // 去除刻度线
|
|
|
|
+ },
|
|
|
|
+ axisLabel: {
|
|
|
|
+ show: false // 去除文本
|
|
|
|
+ },
|
|
|
|
+ axisLine: {
|
|
|
|
+ show: false // 去除轴线
|
|
|
|
+ },
|
|
|
|
+ splitLine: {
|
|
|
|
+ lineStyle: {
|
|
|
|
+ color: "#aaa", // 分割线颜色
|
|
|
|
+ opacity: .2
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ series: [{
|
|
|
|
+ symbol: "none",
|
|
|
|
+ name: "电流",
|
|
|
|
+ type: "line",
|
|
|
|
+ smooth: true, // true 可以让我们的折线显示带有弧度
|
|
|
|
+ areaStyle: {
|
|
|
|
+ normal: {
|
|
|
|
+ color: new echarts.graphic.LinearGradient(
|
|
|
|
+ 0,
|
|
|
|
+ 0,
|
|
|
|
+ 0,
|
|
|
|
+ 1, [{
|
|
|
|
+ offset: 0,
|
|
|
|
+ color: "rgba(255,156,0, 0.4)"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ offset: 0.8,
|