Commit 7eb00f47 authored by Sergey Luzyanin's avatar Sergey Luzyanin

getValAxisCrossType returns AscFormat.CROSS_BETWEEN_MID_CAT by default for a surface charts

parent 70ce5604
...@@ -3392,7 +3392,7 @@ CChartSpace.prototype.getValAxisCrossType = function() ...@@ -3392,7 +3392,7 @@ CChartSpace.prototype.getValAxisCrossType = function()
|| (chartType === AscDFH.historyitem_type_BarChart && this.chart.plotArea.charts[0].barDir !== AscFormat.BAR_DIR_BAR)){ || (chartType === AscDFH.historyitem_type_BarChart && this.chart.plotArea.charts[0].barDir !== AscFormat.BAR_DIR_BAR)){
if(valAx){ if(valAx){
if(AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(this)){ if(AscFormat.CChartsDrawer.prototype._isSwitchCurrent3DChart(this)){
if(chartType === AscDFH.historyitem_type_AreaChart ){ if(chartType === AscDFH.historyitem_type_AreaChart || chartType === AscDFH.historyitem_type_SurfaceChart ){
return AscFormat.isRealNumber(valAx.crossBetween) ? valAx.crossBetween : AscFormat.CROSS_BETWEEN_MID_CAT; return AscFormat.isRealNumber(valAx.crossBetween) ? valAx.crossBetween : AscFormat.CROSS_BETWEEN_MID_CAT;
} }
else if(chartType === AscDFH.historyitem_type_LineChart){ else if(chartType === AscDFH.historyitem_type_LineChart){
...@@ -3403,7 +3403,7 @@ CChartSpace.prototype.getValAxisCrossType = function() ...@@ -3403,7 +3403,7 @@ CChartSpace.prototype.getValAxisCrossType = function()
} }
} }
else{ else{
return AscFormat.isRealNumber(valAx.crossBetween) ? valAx.crossBetween : (chartType === AscDFH.historyitem_type_AreaChart ? AscFormat.CROSS_BETWEEN_MID_CAT : AscFormat.CROSS_BETWEEN_BETWEEN); return AscFormat.isRealNumber(valAx.crossBetween) ? valAx.crossBetween : ((chartType === AscDFH.historyitem_type_AreaChart|| chartType === AscDFH.historyitem_type_SurfaceChart ) ? AscFormat.CROSS_BETWEEN_MID_CAT : AscFormat.CROSS_BETWEEN_BETWEEN);
} }
} }
} }
......
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