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] 甘特图markline给出的日期不在当前范围内,markline会显示在某一个位置上 #2689

Closed
majinkai opened this issue Oct 29, 2024 · 3 comments · Fixed by #2730
Assignees
Labels
bug Something isn't working

Comments

@majinkai
Copy link

Version

1.10.1

Link to Minimal Reproduction

/

Steps to Reproduce

markLine: [
      {
        date: dayjs().format('YYYY-MM-DD'),
        position: 'middle',
        style: {
          lineWidth: 1,
          lineColor: window.$themeVars?.successColor,
          scrollToMarkLine: true,
          lineDash: [8, 4]
        }
      }
    ]

Current Behavior

image

Expected Behavior

/

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@majinkai majinkai added the bug Something isn't working label Oct 29, 2024
@fangsmile fangsmile self-assigned this Oct 29, 2024
@fangsmile
Copy link
Contributor

@majinkai 你设置的日期是什么?现在markline是显示在2025年3月6日 是不对的吗?

@majinkai
Copy link
Author

majinkai commented Oct 30, 2024

@fangsmile

设置的是date: dayjs().format('YYYY-MM-DD'),也就是今天

假设整个图中的最小日期是2025-01-01,最大日期是2025-10-01,markline给出一个日期是2024-12-01,就会像上图一样,在甘特图的某个位置上面显示一条线,按理说不应该显示任何线

@fangsmile
Copy link
Contributor

@fangsmile

设置的是date: dayjs().format('YYYY-MM-DD'),也就是今天

假设整个图中的最小日期是2025-01-01,最大日期是2025-10-01,markline给出一个日期是2024-12-01,就会像上图一样,在甘特图的某个位置上面显示一条线,按理说不应该显示任何线

ok 你这样描述问题 我就知道怎么复现去排查问题了 @majinkai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants