gantt: add a toplevel topAxis configuration option

This commit is contained in:
Nishanth Aravamudan 2021-03-24 11:38:03 -05:00
parent 2d0aab223c
commit 120b89041b
2 changed files with 13 additions and 0 deletions

View File

@ -613,6 +613,18 @@ const config = {
*/
useMaxWidth: true,
/**
*| Parameter | Description |Type | Required | Values|
*| --- | --- | --- | --- | --- |
*| topAxis | See notes | Boolean | 4 | True, False |
*
***Notes:**when this flag is set date labels will be added to the
top of the chart
*
***Default value false**.
*/
topAxis: false,
useWidth: undefined
},

View File

@ -671,6 +671,7 @@ export default mermaidAPI;
* fontFamily:'"Open-Sans", "sans-serif"',
* numberSectionStyles:4,
* axisFormat:'%Y-%m-%d',
* topAxis:false,
* }
* };
* mermaid.initialize(config);