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

Weekday not updating in gantt chart #737

Closed
DTGitRepository opened this issue Aug 28, 2024 · 1 comment
Closed

Weekday not updating in gantt chart #737

DTGitRepository opened this issue Aug 28, 2024 · 1 comment

Comments

@DTGitRepository
Copy link

DTGitRepository commented Aug 28, 2024

Describe the bug
When setting "weekday": "monday", it is not reflected in the output file.
My understanding is that the x-axis labels should now be monday dates, please correct me if I have misunderstood.
mermaid-js/mermaid#4634

To Reproduce
As above

Expected behavior
The week markers on the x-axis are updated to the relevant weekday value.

Files/Screenshots

Input file

```mermaid
gantt
   %% Basic configuration
   dateFormat  YYYY-MM-DD
   title       Infrastructure as Code Timeline Projection
   
   section Resource Imports and HCL Declaration 
   A task           :a1, 2024-08-05, 30d
   Another task     :after a1, 20d
   section Sub A
   Automation Accounts      :2024-08-26, 12d
   another task      : 24d
```

Config file

{
    "theme": "dark",
    "gantt": {
        "leftPadding": 210,
        "weekday": "monday"
    }
}

mmdc -i .\iac.md -c .\config.json -e png

Output

iac md-1

Desktop/Versions (please complete the following information):

  • OS: Win10 22H2, 19045.4780
  • mmdc: 10.9.1
  • node: 20.11.1
@DTGitRepository
Copy link
Author

Note to self: RTFM. Example clearly stated: https://mermaid.js.org/syntax/gantt.html#axis-ticks-v10-3-0

gantt
   tickInterval 1week
   weekday monday

tickInterval is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant