BUG in webix.protoUI({name:"chart"::_calculateScale:function(nmin,nmax) line 27156

power is undefined!

while(end<nmax){
end += step;
end = parseFloat((end*1.0).toFixed(Math.abs(power)));
}

var power = Math.floor(this._log10(step));
return { start:start,end:end,step:step,fixNum:power<0?Math.abs(power):0 };

should be:

var power = Math.floor(this._log10(step));
while(end<nmax){
end += step;
end = parseFloat((end*1.0).toFixed(Math.abs(power)));
}

return { start:start,end:end,step:step,fixNum:power<0?Math.abs(power):0 };

Tagged:

Comments

  • Yep, thank you for reporting. Will be fixed in the nearest build.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion