Fix react UI bug with series going on and off (#7804)
* Fix react UI bug with series going on and off Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
b9437cba50
commit
88d563eb2e
@ -108,13 +108,11 @@ charts or filled areas).
|
|||||||
l = newpoints.length;
|
l = newpoints.length;
|
||||||
|
|
||||||
if (i < points.length && points[i] == null) {
|
if (i < points.length && points[i] == null) {
|
||||||
// copy gaps
|
// take the points from the previous series
|
||||||
for (m = 0; m < ps; ++m) newpoints.push(points[i + m]);
|
for (m = 0; m < ps; ++m) newpoints.push(otherpoints[i + m]);
|
||||||
|
if (withbottom) newpoints[l + 2] = otherpoints[i + accumulateOffset];
|
||||||
i += ps;
|
i += ps;
|
||||||
} else if (i >= points.length) {
|
} else if (i >= points.length) {
|
||||||
// take the remaining points from the previous series
|
|
||||||
for (m = 0; m < ps; ++m) newpoints.push(otherpoints[j + m]);
|
|
||||||
if (withbottom) newpoints[l + 2] = otherpoints[j + accumulateOffset];
|
|
||||||
j += otherps;
|
j += otherps;
|
||||||
} else if (j >= otherpoints.length) {
|
} else if (j >= otherpoints.length) {
|
||||||
// take the remaining points from the current series
|
// take the remaining points from the current series
|
||||||
|
Loading…
x
Reference in New Issue
Block a user