Commit 14fa3e7f authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53636 954022d7-b5bf-4e40-9824-e11837661b57
parent b9b0defb
...@@ -2767,15 +2767,14 @@ drawPieChart.prototype = ...@@ -2767,15 +2767,14 @@ drawPieChart.prototype =
var xCenter = this.chartProp.chartGutter._left + trueWidth/2; var xCenter = this.chartProp.chartGutter._left + trueWidth/2;
var yCenter = this.chartProp.chartGutter._top + trueHeight/2; var yCenter = this.chartProp.chartGutter._top + trueHeight/2;
this.tempAngle = 0; this.tempAngle = Math.PI/2;
for (var i = 0,len = numCache.length; i < len; i++) { // ,
for (var i = numCache.length - 1; i >= 0; i--) {
var angle = Math.abs((parseFloat(numCache[i].val / sumData)) * (Math.PI * 2)); var angle = Math.abs((parseFloat(numCache[i].val / sumData)) * (Math.PI * 2));
if(!this.paths.series) if(!this.paths.series)
this.paths.series = []; this.paths.series = [];
this.paths.series[i] = this._calculateSegment(angle, radius, xCenter, yCenter); this.paths.series[i] = this._calculateSegment(angle, radius, xCenter, yCenter);
} }
}, },
_calculateSegment: function (angle, radius, xCenter, yCenter) _calculateSegment: function (angle, radius, xCenter, yCenter)
......
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