let option = {
tooltip: {
trigger: “axis”,
axisPointer: {
type: “cross”,
label: {
backgroundColor: “#6a7985”
}
},
formatter: function(params) {
let relVal = params[0].name;
for (let i = 0, l = params.length; i < l; i++) {
relVal +=
“
” +
params[i].marker +
params[i].seriesName +
“:” +
params[i].value +
“%”;
}
return relVal;
}
},
legend: {
icon: “rect”,
itemGap: 20
},
grid: {
left: “3%”,
right: “2%”,
bottom: “5%”,
top: “20%”,
containLabel: true
},
xAxis: {
data: this.timeList,
axisLabel: {
color: “#fff”
},
axisTick: {
show: false
},
axisLine: {
show: true,
lineStyle: {
color: “#c7c7c7”
}
},
axisLabel: {
color: “#868686”
},
z: 10
},
yAxis: {
axisLine: {
show: true,
lineStyle: {
color: “#c7c7c7”
}
},
axisTick: {
show: false
},
axisLabel: {
color: “#868686”
},
splitLine: {
show: false
}
},
color: this.color,
series:[
{
name: “资源池存储空闲率”,
type: “line”,
smooth: true,
showSymbol: false,
areaStyle: {},
stack: “all”,
data
}
]
};
12-12
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交