From 1dda43c4634819cbd2738b09d95459b4a45446fd Mon Sep 17 00:00:00 2001 From: pissang Date: Thu, 23 Jul 2020 11:41:01 +0800 Subject: [PATCH] fix(pie): fix wrong label x,y in select state when position is inside --- src/chart/pie/labelLayout.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/chart/pie/labelLayout.ts b/src/chart/pie/labelLayout.ts index 6f5b6e2dc..ad8acc4fc 100644 --- a/src/chart/pie/labelLayout.ts +++ b/src/chart/pie/labelLayout.ts @@ -388,6 +388,11 @@ export default function ( label.setStyle({ align: textAlign }); + const selectState = label.states.select; + if (selectState) { + selectState.x += label.x; + selectState.y += label.y; + } } sector.setTextConfig({ inside: isLabelInside -- GitLab