Skip to content

Commit

Permalink
Merge pull request #4483 from rosco54/Issue_4471
Browse files Browse the repository at this point in the history
Fix issue #4471: path termination for irregular series.
  • Loading branch information
junedchhipa authored May 24, 2024
2 parents 8b34013 + 9a2ec9b commit af06d89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/charts/Line.js
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,7 @@ class Line {
+ 'z'
linePaths.push(linePath)
areaPaths.push(areaPath)
pathState = -1
} else {
let p = graphics.curve(pX + length, pY, x - length, y, x, y)
linePath += p
Expand All @@ -981,6 +982,7 @@ class Line {
+ 'z'
linePaths.push(linePath)
areaPaths.push(areaPath)
pathState = -1
}
}
break
Expand Down Expand Up @@ -1047,6 +1049,7 @@ class Line {
+ 'z'
linePaths.push(linePath)
areaPaths.push(areaPath)
pathState = -1
} else {
let p = pathToPoint(curve, x, y)
linePath += p
Expand All @@ -1062,6 +1065,7 @@ class Line {
+ 'z'
linePaths.push(linePath)
areaPaths.push(areaPath)
pathState = -1
}
}
break
Expand Down

0 comments on commit af06d89

Please sign in to comment.