Commit 79213b13 authored by GoshaZotov's avatar GoshaZotov

fix bug 34095

parent 0e5c421d
...@@ -2470,12 +2470,13 @@ CChartsDrawer.prototype = ...@@ -2470,12 +2470,13 @@ CChartsDrawer.prototype =
_roundValues: function(values) _roundValues: function(values)
{ {
//ToDo пересмотреть округление. на числа << 0 могут быть проблемы!
var kF = 1000000000; var kF = 1000000000;
if(values.length) if(values.length)
{ {
for(var i = 0; i < values.length; i++) for(var i = 0; i < values.length; i++)
{ {
values[i] = parseInt(values[i] * kF) / kF; values[i] = Math.round(values[i] * kF) / kF;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment