Modify ↓
Opened 7 years ago
#13545 new enhancement
gantt diagram axis format support in mermaid
| Reported by: | anonymous | Owned by: | tkob-trac |
|---|---|---|---|
| Priority: | normal | Component: | MermaidMacro |
| Severity: | normal | Keywords: | gantt, axisformat |
| Cc: | Trac Release: |
Description
This is not working. https://github.com/knsv/mermaid/issues/269 But it has already be supported upstream.
tylerlong commented Mar 15, 2018 •
edited
This feature is available in latest version.
There are two ways to specify gantt diagram xAxis format:
Option 1
mermaid.initialize({
gantt: { axisFormat: '%m/%d/%Y' }
});
Then all gantt diagrams in the current web page will use axisFormat: '%m/%d/%Y'
Option 2
<div class="mermaid">
gantt
dateFormat YYYY-MM-DD
axisFormat %m/%d/%Y
...
</div>
Then the current gantt diagram will use axisFormat %m/%d/%Y
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.
Attachments (0)
Note: See
TracTickets for help on using
tickets.


