diff --git a/src/defaultConfig.js b/src/defaultConfig.js index 9fb279bb2..7b9098eb3 100644 --- a/src/defaultConfig.js +++ b/src/defaultConfig.js @@ -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 }, diff --git a/src/mermaidAPI.js b/src/mermaidAPI.js index e7e04829c..3ff2cb284 100755 --- a/src/mermaidAPI.js +++ b/src/mermaidAPI.js @@ -671,6 +671,7 @@ export default mermaidAPI; * fontFamily:'"Open-Sans", "sans-serif"', * numberSectionStyles:4, * axisFormat:'%Y-%m-%d', + * topAxis:false, * } * }; * mermaid.initialize(config);