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

[Bug] time axis labels Irregular interval #17650

Closed
hongdeyuan opened this issue Sep 14, 2022 · 4 comments
Closed

[Bug] time axis labels Irregular interval #17650

hongdeyuan opened this issue Sep 14, 2022 · 4 comments

Comments

@hongdeyuan
Copy link

Version

5.3.3

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=area-time-axis

Steps to Reproduce

  1. 时间轴拖动到每个月底区域时,间隔与其他非月底边界的间隔不一致;见下图:
    image

Current Behavior

  • 拖动到月底区域时, X轴的时间间隔显示 09.29 10.01 10.08 10.15 ....

Expected Behavior

  • 拖动到月底区域时, X轴的时间间隔应为显示 09.29 10.06 10.13 10.20 ....

Environment

- OS: macOS Monterey
- Browser: 版本 105.0.5195.102(正式版本) (arm64)
- Framework: echarts 官方网站例子

Any additional comments?

No response

@hongdeyuan hongdeyuan added the bug label Sep 14, 2022
@echarts-bot echarts-bot bot added the pending We are not sure about whether this is a bug/new feature. label Sep 14, 2022
@echarts-bot
Copy link

echarts-bot bot commented Sep 14, 2022

@hongdeyuan It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

BODY

Version

5.3.3

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=area-time-axis

Steps to Reproduce

  1. When the timeline is dragged to each end-of-month area, the interval is inconsistent with the interval of other non-end-of-month boundaries; See figure below:
    image

Current Behavior

  • When dragging to the end of the month area, the X axis interval is displayed at 09.29 10.01 10.08 10.15 ....

Expected Behavior

  • When dragging to the end of the month area, the X-axis interval should be displayed as 09.29 10.06 10.13 10.20 ....

Environment

- OS: macOS Monterey
- Browser: Version 105.0.5195.102 (official) (arm64)
- Framework: example of the official website of echarts

Any additional comments?

No response

@hongdeyuan
Copy link
Author

hongdeyuan commented Sep 14, 2022 via email

@Ovilia
Copy link
Contributor

Ovilia commented Sep 15, 2022

这个不是 bug,默认按可用宽度计算出的间距是一周的间隔,到了月底因为要显示 1 号位置,所以会出现不等分的情况。如果要强制每周显示,也就是不显示每月 1 号,请关注 #17576

@Ovilia Ovilia added not-a-bug waiting-for: author and removed bug pending We are not sure about whether this is a bug/new feature. labels Sep 15, 2022
@hongdeyuan
Copy link
Author

hongdeyuan commented Sep 16, 2022

这个不是 bug,默认按可用宽度计算出的间距是一周的间隔,到了月底因为要显示 1 号位置,所以会出现不等分的情况。如果要强制每周显示,也就是不显示每月 1 号,请关注 #17576

感谢您的回复,期待 Feature 最新动态消息!🙏

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

No branches or pull requests

2 participants