Skip to content

Commit af06d89

Browse files
authored
Merge pull request #4483 from rosco54/Issue_4471
Fix issue #4471: path termination for irregular series.
2 parents 8b34013 + 9a2ec9b commit af06d89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/charts/Line.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@ class Line {
964964
+ 'z'
965965
linePaths.push(linePath)
966966
areaPaths.push(areaPath)
967+
pathState = -1
967968
} else {
968969
let p = graphics.curve(pX + length, pY, x - length, y, x, y)
969970
linePath += p
@@ -981,6 +982,7 @@ class Line {
981982
+ 'z'
982983
linePaths.push(linePath)
983984
areaPaths.push(areaPath)
985+
pathState = -1
984986
}
985987
}
986988
break
@@ -1047,6 +1049,7 @@ class Line {
10471049
+ 'z'
10481050
linePaths.push(linePath)
10491051
areaPaths.push(areaPath)
1052+
pathState = -1
10501053
} else {
10511054
let p = pathToPoint(curve, x, y)
10521055
linePath += p
@@ -1062,6 +1065,7 @@ class Line {
10621065
+ 'z'
10631066
linePaths.push(linePath)
10641067
areaPaths.push(areaPath)
1068+
pathState = -1
10651069
}
10661070
}
10671071
break

0 commit comments

Comments
 (0)