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

【V5】加了padding: auto后,横轴标题稍长就会自动rotate 90度 且改不回来 #5231

Closed
dechenwj opened this issue Jun 26, 2023 · 1 comment · Fixed by #5238
Closed
Assignees
Labels

Comments

@dechenwj
Copy link

版本:5.0.13
给x轴加30°旋转 如图:
image

padding: 'auto'后
image
rotate(30)失效 经过测试发现x轴的label超过四个字的长度就会失效

@pearmini
Copy link
Member

旋转的原因是 1999加一点点 绘制到图表区域外了。目前 autoPadding 的逻辑就是超出就旋转 90 度,不过确实当用户指定角度的时候生效比较好,不过这样就可能绘制到图表区域外:渲染角度小了就会超出。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants