Skip to content

Commit

Permalink
fix: sunbrust label abnormal
Browse files Browse the repository at this point in the history
  • Loading branch information
susiwen8 committed Mar 7, 2023
1 parent 33b4b87 commit 5b74a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chart/sunburst/SunburstPiece.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class SunburstPiece extends graphic.Sector {
let rotate = 0;
if (rotateType === 'radial') {
rotate = normalizeRadian(-midAngle);
if (((rotate > Math.PI / 2 && rotate <= Math.PI * 1.5))) {
if (((rotate > Math.PI / 2 && rotate < Math.PI * 1.5))) {
rotate += Math.PI;
}
}
Expand Down

0 comments on commit 5b74a22

Please sign in to comment.