mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-14 04:49:44 +02:00
gantt: add a toplevel topAxis configuration option
This commit is contained in:
@@ -613,6 +613,18 @@ const config = {
|
|||||||
*/
|
*/
|
||||||
useMaxWidth: true,
|
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
|
useWidth: undefined
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@@ -671,6 +671,7 @@ export default mermaidAPI;
|
|||||||
* fontFamily:'"Open-Sans", "sans-serif"',
|
* fontFamily:'"Open-Sans", "sans-serif"',
|
||||||
* numberSectionStyles:4,
|
* numberSectionStyles:4,
|
||||||
* axisFormat:'%Y-%m-%d',
|
* axisFormat:'%Y-%m-%d',
|
||||||
|
* topAxis:false,
|
||||||
* }
|
* }
|
||||||
* };
|
* };
|
||||||
* mermaid.initialize(config);
|
* mermaid.initialize(config);
|
||||||
|
Reference in New Issue
Block a user