This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch optimize-style
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/optimize-style by this push:
new 1dda43c fix(pie): fix wrong label x,y in select state when position
is inside
1dda43c is described below
commit 1dda43c4634819cbd2738b09d95459b4a45446fd
Author: pissang <[email protected]>
AuthorDate: Thu Jul 23 11:41:01 2020 +0800
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 6f5b6e2..ad8acc4 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]