Commit 2d952eb0 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

флаги маркеров и линий

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60616 954022d7-b5bf-4e40-9824-e11837661b57
parent 4d3c9483
...@@ -450,7 +450,27 @@ ...@@ -450,7 +450,27 @@
var bSwapGridLines = ((this.type === c_oAscChartTypeSettings.hBarNormal || this.type === c_oAscChartTypeSettings.hBarStacked || this.type === c_oAscChartTypeSettings.hBarStackedPer) var bSwapGridLines = ((this.type === c_oAscChartTypeSettings.hBarNormal || this.type === c_oAscChartTypeSettings.hBarStacked || this.type === c_oAscChartTypeSettings.hBarStackedPer)
!== (type === c_oAscChartTypeSettings.hBarNormal || type === c_oAscChartTypeSettings.hBarStacked || type === c_oAscChartTypeSettings.hBarStackedPer) ); !== (type === c_oAscChartTypeSettings.hBarNormal || type === c_oAscChartTypeSettings.hBarStacked || type === c_oAscChartTypeSettings.hBarStackedPer) );
var bSwapLines = ((
type === c_oAscChartTypeSettings.lineNormal ||
type === c_oAscChartTypeSettings.lineStacked ||
type === c_oAscChartTypeSettings.lineStackedPer ||
type === c_oAscChartTypeSettings.lineNormalMarker ||
type === c_oAscChartTypeSettings.lineStackedMarker ||
type === c_oAscChartTypeSettings.lineStackedPerMarker
) !== (
this.type === c_oAscChartTypeSettings.lineNormal ||
this.type === c_oAscChartTypeSettings.lineStacked ||
this.type === c_oAscChartTypeSettings.lineStackedPer ||
this.type === c_oAscChartTypeSettings.lineNormalMarker ||
this.type === c_oAscChartTypeSettings.lineStackedMarker ||
this.type === c_oAscChartTypeSettings.lineStackedPerMarker
));
var bSwapScatter = ((this.type === c_oAscChartTypeSettings.scatter) !== (type === c_oAscChartTypeSettings.scatter));
var nOldType = this.type;
this.putType(type); this.putType(type);
var hor_axis_settings = this.getHorAxisProps(); var hor_axis_settings = this.getHorAxisProps();
var vert_axis_settings = this.getVertAxisProps(); var vert_axis_settings = this.getVertAxisProps();
...@@ -505,12 +525,7 @@ ...@@ -505,12 +525,7 @@
this.putVertAxisProps(new_vert_axis_settings); this.putVertAxisProps(new_vert_axis_settings);
} }
if( type === c_oAscChartTypeSettings.lineNormal || if( bSwapLines)
type === c_oAscChartTypeSettings.lineStacked ||
type === c_oAscChartTypeSettings.lineStackedPer ||
type === c_oAscChartTypeSettings.lineNormalMarker ||
type === c_oAscChartTypeSettings.lineStackedMarker ||
type === c_oAscChartTypeSettings.lineStackedPerMarker )
{ {
this.putShowMarker(false); this.putShowMarker(false);
this.putSmooth(null); this.putSmooth(null);
...@@ -561,9 +576,12 @@ ...@@ -561,9 +576,12 @@
} }
//this.putHorGridLines(c_oAscGridLinesSettings.major); //this.putHorGridLines(c_oAscGridLinesSettings.major);
//this.putVertGridLines(c_oAscGridLinesSettings.major); //this.putVertGridLines(c_oAscGridLinesSettings.major);
this.putShowMarker(true); if(bSwapScatter)
this.putSmooth(null); {
this.putLine(false); this.putShowMarker(true);
this.putSmooth(null);
this.putLine(false);
}
break; break;
} }
} }
......
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