Modify

Opened 6 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)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain tkob-trac.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.