提交 b69604a2 编写于 作者: L lang

Interval scale fix

上级 61ae09e7
......@@ -133,9 +133,10 @@ define(function (require) {
// var niceSpan = numberUtil.nice(span, false);
var step = numberUtil.nice(span / splitNumber, true);
// Niced extent inside original extent
var niceExtent = [
numberUtil.round(Math.floor(extent[0] / step) * step),
numberUtil.round(Math.ceil(extent[1] / step) * step)
numberUtil.round(mathCeil(extent[0] / step) * step),
numberUtil.round(mathFloor(extent[1] / step) * step)
];
this._interval = step;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册