Skip to content

Commit

Permalink
marker fix when null values are present
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Jan 22, 2025
1 parent 2ccfdfd commit 14db0bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/charts/Line.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ class Line {
// fixes https://github.com/apexcharts/apexcharts.js/issues/3641
const firstPoint = this.markers.plotChartMarkers({
pointsPos: {
x: [w.globals.minX - 100],
y: [w.globals.minY - 100],
x: [0],
y: [w.globals.gridHeight + w.globals.markers.largestSize],
},
seriesIndex: i,
j: 0,
Expand Down
1 change: 1 addition & 0 deletions src/modules/Markers.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default class Markers {
let invalidMarker = !Utils.isNumber(p.y[q])

if (
w.globals.markers.largestSize === 0 &&
w.globals.hasNullValues &&
w.globals.series[i][j + 1] !== null &&
!isVirtualPoint
Expand Down

0 comments on commit 14db0bb

Please sign in to comment.