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

No default dateFormat for Gantt #5655

Open
mrjoel opened this issue Jul 20, 2024 · 0 comments
Open

No default dateFormat for Gantt #5655

mrjoel opened this issue Jul 20, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@mrjoel
Copy link

mrjoel commented Jul 20, 2024

Description

The Gantt chart diagram type documentation claims that "The default input date format is YYYY-MM-DD."

However in actuality, an explicit dateFormay YYYY-MM-DD must be given for such dates to be recognized.

Steps to reproduce

Use starting diagram below, observe that the absolute task is not displayed with any task bar. Then uncomment the dateFormat line and observe that it is rendered as expected.

gantt
  %%dateFormat YYYY-MM-DD
  duration task : 2024-01-01, 31d
  absolute task : 2024-01-01, 2024-02-01

Screenshots

No response

Code Sample

No response

Setup

  • Mermaid version: 10.9.1

Suggested Solutions

No response

Additional Context

No response

@mrjoel mrjoel added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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

No branches or pull requests

1 participant