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

图表宽度设置到一定程度,X 轴文本旋转会和 legend 重叠 #5958

Closed
Darsoon opened this issue Dec 20, 2023 · 1 comment
Closed

Comments

@Darsoon
Copy link

Darsoon commented Dec 20, 2023

问题描述

关闭 X 轴 label 的 autoEllipsis 和 autoHide,开启 autoRotate,然后改变图表宽度,当一定宽度时,图表的 label 旋转将和图例重合,但继续改变,显示又会恢复。

重现链接

https://codesandbox.io/p/sandbox/reverent-kilby-hw7ypz?file=%2Findex.ts%3A29%2C11

重现步骤

  1. 关闭 X 轴 label 的 autoEllipsis 和 autoHide,开启 autoRotate
  2. 缓慢改小图表宽度,到一定宽度能复现
  3. 如果手动拖拽不复现,可以使用 chart.changeSize 二分法,亲测稳定复现

预期行为

理论上不应该发生重叠现象

平台

  • 操作系统: macOS
  • 网页浏览器: Google Chrome

屏幕截图或视频(可选)

image

补充说明(可选)

No response

@hustcc
Copy link
Member

hustcc commented Dec 26, 2023

这个 bug 是旧版本一直存在,之前的图表布局设计,无法修复,😭。可以尝试一下新版本。

@hustcc hustcc closed this as completed Dec 26, 2023
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

2 participants