Commit 9bc428f9 authored by GoshaZotov's avatar GoshaZotov

fix bug 32574

parent 32db698a
...@@ -1240,7 +1240,7 @@ CChartsDrawer.prototype = ...@@ -1240,7 +1240,7 @@ CChartsDrawer.prototype =
numSeries++; numSeries++;
} }
} }
else else //point(scatter) chart
{ {
var yVal; var yVal;
var xVal; var xVal;
...@@ -1253,39 +1253,68 @@ CChartsDrawer.prototype = ...@@ -1253,39 +1253,68 @@ CChartsDrawer.prototype =
if(!yNumCache) if(!yNumCache)
continue; continue;
for(var j = 0; j < yNumCache.pts.length; ++j) for(var j = 0; j < yNumCache.ptCount; ++j)
{ {
yVal = parseFloat(yNumCache.pts[j].val); if(yNumCache.pts[j])
xNumCache = series[l].xVal && series[l].xVal.numRef ? series[l].xVal.numRef.numCache : series[l].xVal && series[l].xVal.numLit ? series[l].xVal.numLit : null;
if(xNumCache && xNumCache.pts[j])
{ {
if(!isNaN(parseFloat(xNumCache.pts[j].val))) yVal = parseFloat(yNumCache.pts[j].val);
xVal = parseFloat(xNumCache.pts[j].val);
xNumCache = series[l].xVal && series[l].xVal.numRef ? series[l].xVal.numRef.numCache : series[l].xVal && series[l].xVal.numLit ? series[l].xVal.numLit : null;
if(xNumCache && xNumCache.pts[j])
{
if(!isNaN(parseFloat(xNumCache.pts[j].val)))
xVal = parseFloat(xNumCache.pts[j].val);
else
xVal = j + 1;
}
else else
xVal = j + 1; xVal = j + 1;
newArr[l][j] = [xVal, yVal];
if(l == 0 && j == 0)
{
min = xVal;
max = xVal;
minY = yVal;
maxY = yVal;
}
if(xVal < min)
min = xVal;
if(xVal > max)
max = xVal;
if(yVal < minY)
minY = yVal;
if(yVal > maxY)
maxY = yVal;
} }
else else
xVal = j + 1;
newArr[l][j] = [xVal, yVal];
if(l == 0 && j == 0)
{ {
min = xVal; xNumCache = series[l].xVal && series[l].xVal.numRef ? series[l].xVal.numRef.numCache : series[l].xVal && series[l].xVal.numLit ? series[l].xVal.numLit : null;
max = xVal; if(xNumCache && xNumCache.pts[j])
minY = yVal; {
maxY = yVal; if(!isNaN(parseFloat(xNumCache.pts[j].val)))
xVal = parseFloat(xNumCache.pts[j].val);
else
xVal = j + 1;
}
else
xVal = j + 1;
if(l == 0 && j == 0)
{
min = xVal;
max = xVal;
}
if(xVal < min)
min = xVal;
if(xVal > max)
max = xVal;
} }
if(xVal < min)
min = xVal;
if(xVal > max)
max = xVal;
if(yVal < minY)
minY = yVal;
if(yVal > maxY)
maxY = yVal;
} }
} }
this.calcProp.ymin = minY; this.calcProp.ymin = minY;
......
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