Commit 7ebc4b28 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

убрал Asc.clone

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54292 954022d7-b5bf-4e40-9824-e11837661b57
parent 3bcfa88e
......@@ -357,14 +357,8 @@ CChartsDrawer.prototype =
this.calcProp.min = this._getMinValueArray(this.calcProp.data);
}
else if (this.calcProp.subType == 'stackedPer') {
var copyData = Asc.clone(this.calcProp.data);
for (var j = 0; j < (this.calcProp.data.length - 1); j++) {
for (var i = 0; i < this.calcProp.data[j].length; i++) {
this.calcProp.data[j + 1][i] = this.calcProp.data[j + 1][i] + this.calcProp.data[j][i]
}
}
var tempData = this.calcProp.data;
var firstData = copyData;
var firstData = this.calcProp.data;
var summValue = [];
for (var j = 0; j < (firstData[0].length); j++) {
summValue[j] = 0;
......@@ -372,6 +366,14 @@ CChartsDrawer.prototype =
summValue[j] += Math.abs(firstData[i][j])
}
}
for (var j = 0; j < (this.calcProp.data.length - 1); j++) {
for (var i = 0; i < this.calcProp.data[j].length; i++) {
this.calcProp.data[j + 1][i] = this.calcProp.data[j + 1][i] + this.calcProp.data[j][i]
}
}
var tempData = this.calcProp.data;
for (var j = 0; j < (tempData[0].length); j++) {
for (var i = 0; i < tempData.length; i++) {
......
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