Commit 155f8b8d authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54889 954022d7-b5bf-4e40-9824-e11837661b57
parent 7e9127a6
...@@ -2054,7 +2054,8 @@ CChartsDrawer.prototype = ...@@ -2054,7 +2054,8 @@ CChartsDrawer.prototype =
var max1; var max1;
var arr = []; var arr = [];
//находим минимальное значение //находим минимальное значение
var min, max, greaterNullNum; var min, max, greaterNullNum, lengthNum;
if('Bar' == mainObj.type) if('Bar' == mainObj.type)
{ {
if(mainObj.subType == 'stacked') if(mainObj.subType == 'stacked')
...@@ -5301,7 +5302,7 @@ gridChart.prototype = ...@@ -5301,7 +5302,7 @@ gridChart.prototype =
var numCache = this.chartProp.series[0].val.numRef ? this.chartProp.series[0].val.numRef.numCache.pts : this.chartProp.series[0].val.numLit.pts; var numCache = this.chartProp.series[0].val.numRef ? this.chartProp.series[0].val.numRef.numCache.pts : this.chartProp.series[0].val.numLit.pts;
var tempAngle = 2 * Math.PI / numCache.length; var tempAngle = 2 * Math.PI / numCache.length;
var xDiff = ((trueHeight / 2) / yPoints.length) / this.chartProp.pxToMM; var xDiff = ((trueHeight / 2) / yPoints.length) / this.chartProp.pxToMM;
var radius; var radius, xFirst, yFirst;
} }
for(var i = 0; i <= this.chartProp.numhlines; i++) for(var i = 0; i <= this.chartProp.numhlines; i++)
...@@ -5331,10 +5332,23 @@ gridChart.prototype = ...@@ -5331,10 +5332,23 @@ gridChart.prototype =
path.stroke = true; path.stroke = true;
var pxToMm = this.chartProp.pxToMM; var pxToMm = this.chartProp.pxToMM;
if(k == 0) if(k == 0)
path.moveTo(x / pxToMm * pathW, y / pxToMm * pathH); {
else xFirst = x;
path.lnTo(x / pxToMm * pathW, y / pxToMm * pathH); yFirst = y;
path.moveTo(x * pathW, y * pathH);
}
else
{
if(k == numCache.length - 1)
{
path.lnTo(x * pathW, y * pathH);
path.lnTo(xFirst * pathW, yFirst * pathH);
}
else
path.lnTo(x * pathW, y * pathH);
}
} }
path.recalculate(gdLst); path.recalculate(gdLst);
......
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