Skip to content

Commit 14db0bb

Browse files
committed
marker fix when null values are present
1 parent 2ccfdfd commit 14db0bb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/charts/Line.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ class Line {
301301
// fixes https://github.com/apexcharts/apexcharts.js/issues/3641
302302
const firstPoint = this.markers.plotChartMarkers({
303303
pointsPos: {
304-
x: [w.globals.minX - 100],
305-
y: [w.globals.minY - 100],
304+
x: [0],
305+
y: [w.globals.gridHeight + w.globals.markers.largestSize],
306306
},
307307
seriesIndex: i,
308308
j: 0,

src/modules/Markers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export default class Markers {
6161
let invalidMarker = !Utils.isNumber(p.y[q])
6262

6363
if (
64+
w.globals.markers.largestSize === 0 &&
6465
w.globals.hasNullValues &&
6566
w.globals.series[i][j + 1] !== null &&
6667
!isVirtualPoint

0 commit comments

Comments
 (0)