方法:在xAxis的axisLabel里添加interval: 0
xAxis: {
data: [],
splitLine: {
show: false,
},
axisLabel: {
show: true,
textStyle: {
color: '#fff'
},
interval: 0
}
},