Opened 4 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:


This is not working. But it has already be supported upstream.

 tylerlong commented Mar 15, 2018 •

This feature is available in latest version.

There are two ways to specify gantt diagram xAxis format:
Option 1

      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">
dateFormat  YYYY-MM-DD
axisFormat  %m/%d/%Y

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
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.