Gantt numberSectionStyles should be 4

This commit is contained in:
Tyler Long
2018-03-13 21:17:32 +08:00
parent 011220180c
commit f3fcfb635b
2 changed files with 20 additions and 2 deletions

20
dist/index.html vendored
View File

@@ -20,6 +20,19 @@ click B testClick "click test"
<hr/> <hr/>
<div class="mermaid">
graph TD
A-->B
A-->C
A-->Z
A-->Y
B-->Y
Z-->Y
Y-->A
</div>
<hr/>
<div class="mermaid"> <div class="mermaid">
sequenceDiagram sequenceDiagram
Alice ->> Bob: Hello Bob, how are you? Alice ->> Bob: Hello Bob, how are you?
@@ -105,7 +118,12 @@ Class08 <--> C2: Cool label
</div> </div>
<script src="./mermaid.js"></script> <script src="./mermaid.js"></script>
<script> <script>
mermaid.initialize({ theme: 'forest', logLevel: 3, gantt: { axisFormat: '%m/%d/%Y' } }); mermaid.initialize({
theme: 'forest',
logLevel: 3,
gantt: { axisFormat: '%m/%d/%Y' },
sequence: { actorMargin: 50 },
});
</script> </script>
<script> <script>
function testClick(nodeId) { function testClick(nodeId) {

View File

@@ -205,7 +205,7 @@ const config = {
/** /**
* **numberSectionStyles** - the number of alternating section styles * **numberSectionStyles** - the number of alternating section styles
*/ */
numberSectionStyles: 3, numberSectionStyles: 4,
/** /**
* **axisFormat** - datetime format of the axis, this might need adjustment to match your locale and preferences * **axisFormat** - datetime format of the axis, this might need adjustment to match your locale and preferences