From f02b0e7797a5f61027614a796981711cc88d720d Mon Sep 17 00:00:00 2001 From: Jaime Bautista Date: Thu, 31 Oct 2024 16:30:21 +0100 Subject: [PATCH] Fix isolated point in line chart not closing path --- src/charts/Line.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charts/Line.js b/src/charts/Line.js index 3067dd7b6..ccf597484 100644 --- a/src/charts/Line.js +++ b/src/charts/Line.js @@ -953,7 +953,7 @@ class Line { areaPath = graphics.move(pX, pY) // Check for single isolated point - if (series[i][j + 1] === null) { + if (series[i][j + 1] === null || typeof series[i][j + 1] === 'undefined') { linePaths.push(linePath) areaPaths.push(areaPath) // Stay in pathState = 0; @@ -1042,7 +1042,7 @@ class Line { areaPath = graphics.move(pX, pY) // Check for single isolated point - if (series[i][j + 1] === null) { + if (series[i][j + 1] === null || typeof series[i][j + 1] === 'undefined') { linePaths.push(linePath) areaPaths.push(areaPath) // Stay in pathState = 0