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