Commit e4d66f1c authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

delete _scale_round

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51874 954022d7-b5bf-4e40-9824-e11837661b57
parent 97d11689
...@@ -38,7 +38,6 @@ OfficeExcel.OtherProps = function() ...@@ -38,7 +38,6 @@ OfficeExcel.OtherProps = function()
this._units_pre = ''; this._units_pre = '';
this._units_post = ''; this._units_post = '';
this._scale_round = false;
this._scale_decimals = 0; this._scale_decimals = 0;
this._scale_point = '.'; this._scale_point = '.';
this._scale_thousand = ','; this._scale_thousand = ',';
......
...@@ -1120,7 +1120,7 @@ ...@@ -1120,7 +1120,7 @@
return [0.2,0.4,0.6,0.8, Number(1).toFixed(1)]; return [0.2,0.4,0.6,0.8, Number(1).toFixed(1)];
} else if (max >= 0.1) { } else if (max >= 0.1) {
return obj._otherProps._scale_round ? [0.2,0.4,0.6,0.8,1] : [0.1,0.2,0.3,0.4,0.5]; return [0.1,0.2,0.3,0.4,0.5];
} else { } else {
...@@ -1165,13 +1165,6 @@ ...@@ -1165,13 +1165,6 @@
topValue = (Number(original_max) <= 5 ? 5 : 10); topValue = (Number(original_max) <= 5 ? 5 : 10);
} }
/**
* Added 02/11/2010 to create "nicer" scales
*/
if (obj && typeof(obj._otherProps._scale_round) == 'boolean' && obj._otherProps._scale_round) {
topValue = 10 * interval;
}
return [topValue * 0.2, topValue * 0.4, topValue * 0.6, topValue * 0.8, topValue]; return [topValue * 0.2, topValue * 0.4, topValue * 0.6, topValue * 0.8, topValue];
} }
......
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