You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/07/23 03:41:40 UTC
[incubator-echarts] branch optimize-style updated: fix(pie): fix
wrong label x, y in select state when position is inside
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 <bm...@gmail.com>
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org