From d33333907b8f6e7af34096bef51a287ca9c6ba25 Mon Sep 17 00:00:00 2001 From: cuobiezi Date: Tue, 12 Nov 2024 22:39:39 +0800 Subject: [PATCH] #4767 --- src/charts/Line.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/charts/Line.js b/src/charts/Line.js index 9e1172477..43b7dce5f 100644 --- a/src/charts/Line.js +++ b/src/charts/Line.js @@ -387,7 +387,7 @@ class Line { if (forecast.count > 0 && type !== 'rangeArea') { const forecastCutoff = w.globals.seriesXvalues[realIndex][ - w.globals.seriesXvalues[realIndex].length - forecast.count - 1 + w.globals.seriesXvalues[realIndex].length - forecast.count - 1 ] const elForecastMask = graphics.drawRect( forecastCutoff, @@ -642,7 +642,9 @@ class Line { } // push current X - xArrj.push(x) + if (typeof w.globals.seriesX[realIndex][j + 1] !== 'undefined') { + xArrj.push(x) + } // push current Y that will be used as next series's bottom position if (