Commit 57146166 authored by GoshaZotov's avatar GoshaZotov

delete xPos/yPos

parent 550b2846
...@@ -745,7 +745,7 @@ Processor3D.prototype.correctPointsPosition = function(chartSpace) ...@@ -745,7 +745,7 @@ Processor3D.prototype.correctPointsPosition = function(chartSpace)
if(!xPoints) if(!xPoints)
xPoints = chartSpace.chart.plotArea && chartSpace.chart.plotArea.valAx ? chartSpace.chart.plotArea.valAx.xPoints : null; xPoints = chartSpace.chart.plotArea && chartSpace.chart.plotArea.valAx ? chartSpace.chart.plotArea.valAx.xPoints : null;
var coordYAxisOx = chartSpace.chart.plotArea.catAx.posY ? chartSpace.chart.plotArea.catAx.posY : chartSpace.chart.plotArea.catAx.yPos; var coordYAxisOx = chartSpace.chart.plotArea.catAx.posY;
if(!coordYAxisOx) if(!coordYAxisOx)
coordYAxisOx = chartSpace.chart.plotArea.valAx.posY != undefined ? chartSpace.chart.plotArea.valAx.posY : chartSpace.chart.plotArea.valAx.posY; coordYAxisOx = chartSpace.chart.plotArea.valAx.posY != undefined ? chartSpace.chart.plotArea.valAx.posY : chartSpace.chart.plotArea.valAx.posY;
......
...@@ -6472,7 +6472,7 @@ drawHBarChart.prototype = ...@@ -6472,7 +6472,7 @@ drawHBarChart.prototype =
{ {
var startY, diffYVal, width, numCache, dVal, curVal, prevVal, endBlockPosition, startBlockPosition; var startY, diffYVal, width, numCache, dVal, curVal, prevVal, endBlockPosition, startBlockPosition;
var catAx = this.cChartSpace.chart.plotArea.catAx; var catAx = this.cChartSpace.chart.plotArea.catAx;
var nullPositionOX = (catAx.posX !== undefined && catAx.posX !== null) ? catAx.posX * this.chartProp.pxToMM : catAx.xPos * this.chartProp.pxToMM; var nullPositionOX = catAx.posX !== null ? catAx.posX * this.chartProp.pxToMM : 0;
if(this.chartProp.subType == "stacked" || this.chartProp.subType == "stackedPer") if(this.chartProp.subType == "stacked" || this.chartProp.subType == "stackedPer")
{ {
...@@ -10884,13 +10884,13 @@ catAxisChart.prototype = ...@@ -10884,13 +10884,13 @@ catAxisChart.prototype =
var axisPos; var axisPos;
if(this.chartProp.type == c_oChartTypes.HBar) if(this.chartProp.type == c_oChartTypes.HBar)
{ {
axisPos = this.cChartSpace.chart.plotArea.catAx.posX ? this.cChartSpace.chart.plotArea.catAx.posX : this.cChartSpace.chart.plotArea.catAx.xPos; axisPos = this.cChartSpace.chart.plotArea.catAx.posX;
this.paths.axisLine = this._calculateLine( axisPos, this.chartProp.chartGutter._top / this.chartProp.pxToMM, axisPos, (this.chartProp.heightCanvas - this.chartProp.chartGutter._bottom) / this.chartProp.pxToMM); this.paths.axisLine = this._calculateLine( axisPos, this.chartProp.chartGutter._top / this.chartProp.pxToMM, axisPos, (this.chartProp.heightCanvas - this.chartProp.chartGutter._bottom) / this.chartProp.pxToMM);
} }
else else
{ {
//TODO сделать по аналогии с HBAR //TODO сделать по аналогии с HBAR
axisPos = this.cChartSpace.chart.plotArea.catAx.posY ? this.cChartSpace.chart.plotArea.catAx.posY : this.cChartSpace.chart.plotArea.catAx.yPos; axisPos = this.cChartSpace.chart.plotArea.catAx.posY;
this.paths.axisLine = this._calculateLine( this.chartProp.chartGutter._left / this.chartProp.pxToMM, axisPos, (this.chartProp.widthCanvas - this.chartProp.chartGutter._right) / this.chartProp.pxToMM, axisPos); this.paths.axisLine = this._calculateLine( this.chartProp.chartGutter._left / this.chartProp.pxToMM, axisPos, (this.chartProp.widthCanvas - this.chartProp.chartGutter._right) / this.chartProp.pxToMM, axisPos);
} }
}, },
...@@ -10990,7 +10990,7 @@ catAxisChart.prototype = ...@@ -10990,7 +10990,7 @@ catAxisChart.prototype =
var stepY = yPoints[1] ? Math.abs(yPoints[1].pos - yPoints[0].pos) : Math.abs(yPoints[0].pos - this.chartProp.chartGutter._bottom / this.chartProp.pxToMM); var stepY = yPoints[1] ? Math.abs(yPoints[1].pos - yPoints[0].pos) : Math.abs(yPoints[0].pos - this.chartProp.chartGutter._bottom / this.chartProp.pxToMM);
var minorStep = stepY / this.chartProp.numhMinorlines; var minorStep = stepY / this.chartProp.numhMinorlines;
var posX = this.cChartSpace.chart.plotArea.catAx.posX ? this.cChartSpace.chart.plotArea.catAx.posX : this.cChartSpace.chart.plotArea.catAx.xPos; var posX = this.cChartSpace.chart.plotArea.catAx.posX;
var posY, posMinorY, k; var posY, posMinorY, k;
...@@ -11056,7 +11056,7 @@ catAxisChart.prototype = ...@@ -11056,7 +11056,7 @@ catAxisChart.prototype =
var stepX = xPoints[1] ? Math.abs(xPoints[1].pos - xPoints[0].pos) : Math.abs(xPoints[0].pos - this.cChartSpace.chart.plotArea.catAx.posX) * 2; var stepX = xPoints[1] ? Math.abs(xPoints[1].pos - xPoints[0].pos) : Math.abs(xPoints[0].pos - this.cChartSpace.chart.plotArea.catAx.posX) * 2;
var minorStep = stepX / this.chartProp.numvMinorlines; var minorStep = stepX / this.chartProp.numvMinorlines;
var posY = this.cChartSpace.chart.plotArea.catAx.posY ? this.cChartSpace.chart.plotArea.catAx.posY : this.cChartSpace.chart.plotArea.catAx.yPos; var posY = this.cChartSpace.chart.plotArea.catAx.posY;
var posX, posMinorX, k; var posX, posMinorX, k;
var firstDiff = 0, posXtemp; var firstDiff = 0, posXtemp;
...@@ -11233,7 +11233,7 @@ valAxisChart.prototype = ...@@ -11233,7 +11233,7 @@ valAxisChart.prototype =
_calculateAxis : function() _calculateAxis : function()
{ {
var nullPoisition = this.cChartSpace.chart.plotArea.valAx.posX != undefined ? this.cChartSpace.chart.plotArea.valAx.posX : this.cChartSpace.chart.plotArea.valAx.xPos; var nullPoisition = this.cChartSpace.chart.plotArea.valAx.posX;
if(this.chartProp.type == c_oChartTypes.HBar) if(this.chartProp.type == c_oChartTypes.HBar)
{ {
...@@ -11360,7 +11360,7 @@ valAxisChart.prototype = ...@@ -11360,7 +11360,7 @@ valAxisChart.prototype =
var stepY = yPoints[1] ? Math.abs(yPoints[1].pos - yPoints[0].pos) : Math.abs(yPoints[0].pos - this.chartProp.chartGutter._bottom / this.chartProp.pxToMM); var stepY = yPoints[1] ? Math.abs(yPoints[1].pos - yPoints[0].pos) : Math.abs(yPoints[0].pos - this.chartProp.chartGutter._bottom / this.chartProp.pxToMM);
var minorStep = stepY / this.chartProp.numhMinorlines; var minorStep = stepY / this.chartProp.numhMinorlines;
var posX = this.cChartSpace.chart.plotArea.valAx.posX ? this.cChartSpace.chart.plotArea.valAx.posX : this.cChartSpace.chart.plotArea.valAx.xPos; var posX = this.cChartSpace.chart.plotArea.valAx.posX;
var posY; var posY;
var posMinorY; var posMinorY;
...@@ -11501,7 +11501,7 @@ serAxisChart.prototype = ...@@ -11501,7 +11501,7 @@ serAxisChart.prototype =
_calculateAxis : function() _calculateAxis : function()
{ {
var nullPoisition = this.cChartSpace.chart.plotArea.valAx.posX != undefined ? this.cChartSpace.chart.plotArea.valAx.posX : this.cChartSpace.chart.plotArea.valAx.xPos; var nullPoisition = this.cChartSpace.chart.plotArea.valAx.posX;
var nullPositionOx = this.chartProp.nullPositionOX; var nullPositionOx = this.chartProp.nullPositionOX;
var view3DProp = this.cChartSpace.chart.view3D; var view3DProp = this.cChartSpace.chart.view3D;
......
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