mermaid-js / mermaid-live-editor

Edit, preview and share mermaid charts/diagrams. New implementation of the live editor.
https://mermaid.live
MIT License
4.19k stars 639 forks source link

gantt task duration not rendered when using YYYY-Q date format and absolute end-date #1376

Closed sberke-intc closed 4 months ago

sberke-intc commented 9 months ago

Describe the bug Identified Gantt tasks stopped rendering task duration with version 10.6.1 when using YYYY-Q as the date format and absolute end date

To Reproduce Link to Live Editor: Live Editor link (see last task)

Steps to reproduce the behavior:

A "Does This Work?" task was added to the default gantt example and dateFormat was modified accordingly.

gantt
    title A Gantt Diagram
    dateFormat  YYYY-Q
    section Section
    A task           :a1, 2014-1, 30d
    Another task     :after a1  , 20d
    section Another
    Task in sec      :2014-1  , 12d
    another task     : 24d
    Does This Work?:        :2014-1, 2014-2
  1. Change dateFormat to YYYY-Q
  2. Update relevant dates to new format
  3. Add Task with start and end date using absolute YYYY-Q format
  4. Observe the task with absolute YYYY-Q end date
  5. See Error

Expected behavior

Compare to comparable gantt chart using default dateFormat YYYY-MM-DD Link to Live Editor

image

Screenshots The Does This Work? task renders as text only. No visual bar for the start & end dates are rendered:

image

Desktop (please complete the following information):

Smartphone (please complete the following information):

NA

Additional context

Identified using mmdc with @mermaid-js/mermaid-cli@10.6.1 Verified using mermaid.live link Reverted mmdc to last known working version @mermaid-js/mermaid-cli@9.1.7

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days