Skip to content

Commit

Permalink
Merge pull request #18341 from susiwen8/fix-sunbrust-book
Browse files Browse the repository at this point in the history
fix: `sunbrust` label abnormal
  • Loading branch information
Ovilia authored Mar 8, 2023
2 parents 33b4b87 + 5b74a22 commit 1e6f6a9
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 1e6f6a9

Please sign in to comment.