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

Unable to use decimal values as startDate in Gantt diagram #5216

Open
tcm0116 opened this issue Jan 19, 2024 · 0 comments
Open

Unable to use decimal values as startDate in Gantt diagram #5216

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

Comments

@tcm0116
Copy link

tcm0116 commented Jan 19, 2024

Description

According to the Input data format documentation for the Gantt diagram, decimal values should be honored when using Unix timestamps (X) as the dateFormat. However, attempting to do so yields an invalid result.

Steps to reproduce

  1. Paste the code sample below into the Live Editor
  2. No task bars are displayed
  3. Remove the tasks in section S1
  4. Tasks 3 and 4 are properly displayed

Screenshots

Code sample as provided:
image

Code sample with Task 1 and Task 2 removed:
image

Code Sample

gantt
    title A Gantt Diagram
    dateFormat X
    Section S1
    Task 1 : 0.1, 0.2
    Task 2 : 1.1, 0.4
    Section S2
    Task 3 : 0, 200ms
    Task 4 : 1, 400ms

Setup

  • Mermaid version: v10.7.0+b91624c
  • Browser and Version: Chrome for Linux Version 120.0.6099.224 (Official Build) (64-bit)

Suggested Solutions

No response

Additional Context

No response

@tcm0116 tcm0116 added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jan 19, 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