Commit a7dbb16d authored by GoshaZotov's avatar GoshaZotov

change axis values for 3d charts

parent 840ea4ed
...@@ -1515,7 +1515,37 @@ CChartsDrawer.prototype = ...@@ -1515,7 +1515,37 @@ CChartsDrawer.prototype =
arrayValues = this._getArrayDataValues(newStep, axisMin, axisMax, manualMin, manualMax); arrayValues = this._getArrayDataValues(newStep, axisMin, axisMax, manualMin, manualMax);
}; };
};*/ };*/
//TODO для 3d диаграмм. пересмотреть!
if(this._isSwitchCurrent3DChart(chartProp))
{
if(this.calcProp.max > 0 && this.calcProp.min < 0)
{
if(manualMax == null && this.calcProp.max <= arrayValues[arrayValues.length - 2])
{
arrayValues.splice(arrayValues.length - 1, 1);
}
if(manualMin == null && this.calcProp.min >= arrayValues[1])
{
arrayValues.splice(0, 1);
}
}
else if(this.calcProp.max > 0 && this.calcProp.min >= 0)
{
if(manualMax == null && this.calcProp.max <= arrayValues[arrayValues.length - 2])
{
arrayValues.splice(arrayValues.length - 1, 1);
}
}
else if(this.calcProp.min < 0 && this.calcProp.max <= 0)
{
if(manualMin == null && this.calcProp.min >= arrayValues[1])
{
arrayValues.splice(0, 1);
}
}
}
return arrayValues; return arrayValues;
}, },
......
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