From 5b74a2208d18e5cc22c3c2d8744efdfbd16dfbcc Mon Sep 17 00:00:00 2001 From: susiwen8 Date: Tue, 7 Mar 2023 20:08:17 +0800 Subject: [PATCH] fix: `sunbrust` label abnormal --- src/chart/sunburst/SunburstPiece.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chart/sunburst/SunburstPiece.ts b/src/chart/sunburst/SunburstPiece.ts index f4e1598dc1..f937b59ab9 100644 --- a/src/chart/sunburst/SunburstPiece.ts +++ b/src/chart/sunburst/SunburstPiece.ts @@ -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; } }