Commit 97f382b1 authored by GoshaZotov's avatar GoshaZotov

for bug 34473

parent a1b91911
......@@ -2148,6 +2148,11 @@ CChartsDrawer.prototype =
result = yPoints[0].pos - Math.abs((diffVal / resVal) * resPos);
else
result = yPoints[0].pos + Math.abs((diffVal / resVal) * resPos);
if(result > yPoints[yPoints.length - 1].pos || result < yPoints[0].pos)
{
result = yPoints[0].pos;
}
}
else if(val > yPoints[yPoints.length - 1].val)
{
......@@ -2170,6 +2175,11 @@ CChartsDrawer.prototype =
else
result = yPoints[yPoints.length - 1].pos + (diffVal / resVal) * resPos;
}
if(result > yPoints[yPoints.length - 1].pos || result < yPoints[0].pos)
{
result = yPoints[yPoints.length - 1].pos;
}
}
else
{
......
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