未验证 提交 655c1f64 编写于 作者: S sushuang 提交者: GitHub

Merge pull request #11841 from susiwen8/#11832

Fix Radar chart axis extent
......@@ -231,7 +231,7 @@ Radar.prototype.update = function (ecModel, api) {
interval = increaseInterval(interval);
}
// PENDING
var center = Math.round((rawExtent[0] + rawExtent[1]) / 2 / interval) * interval;
var center = Math.ceil((rawExtent[0] + rawExtent[1]) / 2 / interval) * interval;
var halfSplitNumber = Math.round(splitNumber / 2);
scale.setExtent(
numberUtil.round(center - halfSplitNumber * interval),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册