We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e968f4 + 403dce2 commit 7a06637Copy full SHA for 7a06637
src/chart/pie/labelLayout.ts
@@ -89,7 +89,7 @@ function adjustSingleSide(
89
const rA = r + item.len;
90
const rA2 = rA * rA;
91
// Use ellipse implicit function to calculate x
92
- const dx = Math.sqrt((1 - Math.abs(dy * dy / rB2)) * rA2);
+ const dx = Math.sqrt(Math.abs((1 - dy * dy / rB2) * rA2));
93
const newX = cx + (dx + item.len2) * dir;
94
const deltaX = newX - item.label.x;
95
const newTargetWidth = item.targetTextWidth - deltaX * dir;
0 commit comments