我在这里有这个指标,无法弄清楚如何将圆形标签上的小数舍入为1。
尝试了这个:
title: {
text: when,
style: {
fontSize: fontSizeMin + 4 + 'px'
},
formatter: function () {
Math.round(this.y * Math.pow(10, 1)) / Math.pow(10, 1);
}
},
但没有用......