Y轴数据是从后台请求的。 Y轴网格线的颜色不同,在某些图形中还会再增加一条网格线。
yAxis: [{
type: 'value',
axisLine: {
show: false
},
axisTick: {
show: false
},
splitLine: {
show: true,
lineStyle: {
color: ["#fff", "#eeeeee", "#eeeeee", "#eeeeee", "#eeeeee", "#eeeeee", "#eeeeee", "#fff"]
}
},
min: 0,
max: Math.ceil(Math.max.apply(null, that.trendValue)),
splitNumber:5,
axisLabel: {
show: true,
padding: [0, 10, 0, 24],
textStyle: {
color: '#9ea6ad', //x轴文本颜色
fontFamily: 'Microsoft YaHei',
fontWeight: "normal"
}
}
}],