Commit 9a5725f6 authored by Igor.Zotov's avatar Igor.Zotov

http://bugzserver/show_bug.cgi?id=27693 - Ошибка при вводе...

http://bugzserver/show_bug.cgi?id=27693 -  Ошибка при вводе Минимального/Максимального значения границ для вертикальной оси в расширенных настройках диаграммы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60234 954022d7-b5bf-4e40-9824-e11837661b57
parent ed57fdc8
......@@ -1130,6 +1130,15 @@ CChartsDrawer.prototype =
if(this.calcProp.subType == 'stackedPer' && manualMax != null)
manualMax = manualMax * 100;
//TODO временная проверка для некорректных минимальных и максимальных значений
if(manualMax && manualMin && manualMax < manualMin)
{
if(manualMax < 0)
manualMax = 0;
else
manualMin = 0;
}
axisMin = manualMin !== null && manualMin !== undefined ? manualMin : trueMinMax.min;
axisMax = manualMax !== null && manualMax !== undefined ? manualMax : trueMinMax.max;
......@@ -6543,7 +6552,7 @@ valAxisChart.prototype =
{
var yPoints = this.chartSpace.chart.plotArea.valAx.yPoints;
var stepY = yPoints[1] ? Math.abs(yPoints[1].pos - yPoints[0].pos) : Math.abs(yPoints[1].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 posX = this.chartSpace.chart.plotArea.valAx.posX ? this.chartSpace.chart.plotArea.valAx.posX : this.chartSpace.chart.plotArea.valAx.xPos;
......
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