一般如果没有数据,echarts的y轴刻度会隐藏,如果想让y轴刻度显示,需要设置yAxis的min、max属性;
yAxis: [{
type: 'value',
position: 'left',
axisLine: {
show: true,
lineStyle: {
color: 'rgb(124,124,128)'
},
onZero: false
},
axisTick: {
show: false
},
axisLabel: {
color: 'rgb(124,124,128)',
},
splitLine: {
show: true,
lineStyle: {
color: 'rgb(54,54,56)'
}
},
min: 0,
max: yL,
interval: yL / 5,
},{
type: 'value',
position: 'right',
axisLine: {
show: true,
lineStyle: {