yAxis: [ { type: ‘value‘, minInterval: 1//只显示整数 } ],
axisLabel: { //保留一位小数
formatter: function (value, index) {
return value.toFixed(1);
}
}
原文:https://www.cnblogs.com/caoxen/p/11248494.html