yAxis: [{
type: 'value',
axisLabel: {
show: true,
textStyle: {
// color: '#666666',
color: '#ffffff',
fontSize: '12'
}
},
minInterval: 1 //将刻度的最小间距设置为1
}]
注意:minInterval只在数值轴或时间轴中(type: ‘value’ 或 ‘time’)有效