Skip to content

Commit

Permalink
fix #2737; radialbar issue for 0 value in custom startAngle
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Sep 27, 2024
1 parent e025c29 commit 33c36aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/charts/Radial.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,12 @@ class Radial extends Pie {
}

const currFullAngle = Math.abs(endAngle) + Math.abs(startAngle)
if (currFullAngle >= 360) {
if (currFullAngle > 360) {
endAngle = endAngle - 0.01
}

const prevFullAngle = Math.abs(prevEndAngle) + Math.abs(prevStartAngle)
if (prevFullAngle >= 360) {
if (prevFullAngle > 360) {
prevEndAngle = prevEndAngle - 0.01
}

Expand Down

0 comments on commit 33c36aa

Please sign in to comment.