Commit 9c59e865 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

http://bugzserver/show_bug.cgi?id=27236 - Наслоение подписей категорий...

http://bugzserver/show_bug.cgi?id=27236  - Наслоение подписей категорий диаграммы Point, если она построена по одному значению 

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59269 954022d7-b5bf-4e40-9824-e11837661b57
parent a25d4be7
......@@ -1600,11 +1600,11 @@ CChartsDrawer.prototype =
if(this.calcProp.type == "Scatter")
{
this.calcProp.scale = this._getAxisData2(false, this.calcProp.ymin, this.calcProp.ymax, chartProp);
this.calcProp.xScale = this._getAxisData2(true, this.calcProp.min, this.calcProp.max, chartProp);
this.calcProp.scale = this._roundValues(this._getAxisData2(false, this.calcProp.ymin, this.calcProp.ymax, chartProp));
this.calcProp.xScale = this._roundValues(this._getAxisData2(true, this.calcProp.min, this.calcProp.max, chartProp));
}
else
this.calcProp.scale = this._getAxisData2(false, this.calcProp.min, this.calcProp.max, chartProp);
this.calcProp.scale = this._roundValues(this._getAxisData2(false, this.calcProp.min, this.calcProp.max, chartProp));
this.calcProp.widthCanvas = chartProp.extX*this.calcProp.pxToMM;
......@@ -2100,6 +2100,20 @@ CChartsDrawer.prototype =
return 0;
},
_roundValues: function(values)
{
var kF = 1000000000;
if(values.length)
{
for(var i = 0; i < values.length; i++)
{
values[i] = parseInt(values[i] * kF) / kF;
}
}
return values;
},
//***spline functions***
calculate_Bezier: function(x, y, x1, y1, x2, y2, x3, y3)
......
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