﻿ticket	summary	type	release	owner	status	created	modified	_description	_reporter
14086	request for new  mermaid.min.js version	enhancement		Ryan J Ollos	accepted	2021-11-29T03:21:29+01:00	2022-02-18T07:05:46+01:00	The latest mermaid.min.js version should be adopted.	jhuang
13545	gantt diagram axis format support in mermaid	enhancement		tkob-trac	new	2019-03-28T04:42:16+01:00	2019-03-28T04:42:16+01:00	"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.
}}}
"	anonymous
