Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Mermaid Gantt - specifying <end date> in this pattern <taskID>, after <otherTaskId>, <endDate> #5862

Open
wikilpmk opened this issue Sep 15, 2024 · 2 comments · May be fixed by #6163
Open
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@wikilpmk
Copy link

wikilpmk commented Sep 15, 2024

Description

When specifying in a task in this pattern does not render the end date

"taskID", after "otherTaskId", "endDate"

Steps to reproduce

Example:

gantt
apple :a, 2024-07-20, 1w
banana :crit, b, 2024-07-23, 1d
cherry :active, c, after b ,2024-07-25
kiwi :d, 2024-07-20, until b

For cherry, the end date does not show

Setup

  • Mermaid version:v11.0.2
  • Browser and Version: [Chrome]
@wikilpmk wikilpmk added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Sep 15, 2024
@alylim
Copy link

alylim commented Sep 15, 2024

Some additional tests:
image
<taskID>, <startDate>, <endDate> also does not seem to be working.

using mermaid.live @v11.0.2
browser: firefox 129.0.1

@good-jinu
Copy link

It appears to be related to issue #5655, as it works correctly when dateFormat is defined.

Without dateFormat

gantt
    apple :a, 2024-07-06, 2024-07-10
    banana :b, 2024-07-01, 3d
    cherry :c, after b , 2024-07-12
    kiwi :d, after b , 4d
    pear :e, 2024-07-01, until c
    grape :f, after b, until a
    tomato :2024-07-05, 2024-07-10
Loading

With dateFormat

gantt
    dateFormat  YYYY-MM-DD
    apple :a, 2024-07-06, 2024-07-10
    banana :b, 2024-07-01, 3d
    cherry :c, after b , 2024-07-12
    kiwi :d, after b , 4d
    pear :e, 2024-07-01, until c
    grape :f, after b, until a
    tomato :2024-07-05, 2024-07-10
Loading

As far as I have examined, there are two cases where the default dateFormat is not applied:

  • <taskID>, <startDate>, <endDate>
  • <taskID>, after <otherTaskId>, <endDate>

I'd like to take this work

good-jinu added a commit to good-jinu/mermaid that referenced this issue Jan 2, 2025
good-jinu added a commit to good-jinu/mermaid that referenced this issue Jan 2, 2025
@good-jinu good-jinu linked a pull request Jan 3, 2025 that will close this issue
4 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants