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

对 xAxis 的 lable 提供碰撞检测,默认计算 rotate, 动态计算 chart 的底部 padding。 #718

Open
1 task done
benvirus opened this issue Nov 27, 2019 · 0 comments

Comments

@benvirus
Copy link
Contributor

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

What problem does this feature solve?

解决了使用者需要自己计算 label 的 rotate ,同时还要自己计算 chart 的 padding ,因为在 rotate 之后,底部的空间占用会变大,如果不增加底部的 padding ,label 会超出边界。如下图:
image

What does the proposed API look like?

不需要提供新的 api ,默认计算 rotate ,同时使用者自己传入的 rotate 配置可以覆盖。

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

1 participant