-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[Feature request] gantt diagram axis format #269
Comments
Thats a good idea! This should be implemented. |
Please add this feature, thank you! |
please add this feature, thanks!!! |
1 similar comment
please add this feature, thanks!!! |
please add this feature, thanks |
please add this feature, thanks!!! |
Also requesting this feature, thank you. |
I need this feature too, thanks. |
This feature is available in latest version. There are two ways to specify gantt diagram xAxis format: Option 1mermaid.initialize({
gantt: { axisFormat: '%m/%d/%Y' }
}); Then all gantt diagrams in the current web page will use Option 2<div class="mermaid">
gantt
dateFormat YYYY-MM-DD
axisFormat %m/%d/%Y
...
</div> Then the current gantt diagram will use Which one to use:Option 1 is like global config while option 2 is like local config. If both are specified, option 2 overrides options 1. |
What is the syntax for |
Could you please put this solution in the official documentation here: https://mermaid-js.github.io/mermaid/#/gantt?id=syntax ? @tylerlong |
How to control the date of each day on the timeline |
We can define gantt diagram date format like following:
What I am requesting is similar: let user define axis format like following
Currently user defined axis format is not supported. It can only be done via js code:
The text was updated successfully, but these errors were encountered: