@@ -297,6 +297,25 @@ class Line {
297
297
'data:realIndex' : realIndex ,
298
298
} )
299
299
300
+ if ( w . globals . hasNullValues ) {
301
+ // fixes https://github.com/apexcharts/apexcharts.js/issues/3641
302
+ const firstPoint = this . markers . plotChartMarkers (
303
+ {
304
+ x : [ w . globals . minX - 100 ] ,
305
+ y : [ w . globals . minY - 100 ] ,
306
+ } ,
307
+ i ,
308
+ 0 ,
309
+ 0.1 ,
310
+ true
311
+ )
312
+
313
+ if ( firstPoint !== null ) {
314
+ // firstPoint is rendered for cases where there are null values and when dynamic markers are required
315
+ this . elPointsMain . add ( firstPoint )
316
+ }
317
+ }
318
+
300
319
// eldatalabels
301
320
this . elDataLabelsWrap = graphics . group ( {
302
321
class : 'apexcharts-datalabels' ,
@@ -587,7 +606,7 @@ class Line {
587
606
let segmentStartX
588
607
589
608
for ( let j = 0 ; j < iterations ; j ++ ) {
590
- if ( series [ i ] . length === 0 ) break ;
609
+ if ( series [ i ] . length === 0 ) break
591
610
592
611
const isNull =
593
612
typeof series [ i ] [ j + 1 ] === 'undefined' || series [ i ] [ j + 1 ] === null
@@ -956,7 +975,10 @@ class Line {
956
975
areaPath = graphics . move ( pX , pY )
957
976
958
977
// Check for single isolated point
959
- if ( series [ i ] [ j + 1 ] === null || typeof series [ i ] [ j + 1 ] === 'undefined' ) {
978
+ if (
979
+ series [ i ] [ j + 1 ] === null ||
980
+ typeof series [ i ] [ j + 1 ] === 'undefined'
981
+ ) {
960
982
linePaths . push ( linePath )
961
983
areaPaths . push ( areaPath )
962
984
// Stay in pathState = 0;
@@ -1045,7 +1067,10 @@ class Line {
1045
1067
areaPath = graphics . move ( pX , pY )
1046
1068
1047
1069
// Check for single isolated point
1048
- if ( series [ i ] [ j + 1 ] === null || typeof series [ i ] [ j + 1 ] === 'undefined' ) {
1070
+ if (
1071
+ series [ i ] [ j + 1 ] === null ||
1072
+ typeof series [ i ] [ j + 1 ] === 'undefined'
1073
+ ) {
1049
1074
linePaths . push ( linePath )
1050
1075
areaPaths . push ( areaPath )
1051
1076
// Stay in pathState = 0
0 commit comments