Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

漏斗图的标注在某些数据情况下位置会错乱 #3543

Closed
1 task
bingqichen opened this issue Jul 30, 2021 · 3 comments
Closed
1 task

漏斗图的标注在某些数据情况下位置会错乱 #3543

bingqichen opened this issue Jul 30, 2021 · 3 comments

Comments

@bingqichen
Copy link
Contributor

bingqichen commented Jul 30, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

漏斗图的标注在某些数据情况下位置会产生漂移

demo例子中,将 生成订单 订单数字改成 30000,标注就会漂移

Environment Info
g2 4.1.22
System -
Browser -

期望结果:标注依然遵循规则,保持居中

@mochalhui
Copy link

我也遇到了这个问题。请问你知道如何解决了吗

@bingqichen
Copy link
Contributor Author

@mochalhui 暂时换echarts了😂

@hustcc
Copy link
Member

hustcc commented Aug 19, 2021

image

annotation 的位置 position 是根据数据来的,percent 数据直接是居中,直接写死 0.5 就好了。median的意思是中位数,真好 35000 -> 40000 后,中位数变大了,所以文本偏右了。

image

@hustcc hustcc closed this as completed Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants