Selecting the correct title for gantt charts

This commit is contained in:
Knut Sveidqvist 2022-05-24 20:10:04 +02:00
parent 1148039c6b
commit 66f2f42294
2 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@
commit commit
commit commit
</div> </div>
<div class="mermaid" style="width: 50%;"> <div class="mermaid2" style="width: 50%;">
sequenceDiagram sequenceDiagram
title: My Sequence Diagram Title title: My Sequence Diagram Title
accTitle: My Acc Sequence Diagram accTitle: My Acc Sequence Diagram
@ -160,7 +160,7 @@ requirementDiagram
a1-->a2-->a3 a1-->a2-->a3
end end
</div> </div>
<div class="mermaid2" style="width: 100%;"> <div class="mermaid" style="width: 100%;">
gantt gantt
accTitle: My gantt chart accTitle: My gantt chart
accDescr: My my gantt chart Description accDescr: My my gantt chart Description

View File

@ -109,7 +109,7 @@ export const draw = function (text, id) {
svg svg
.append('text') .append('text')
.text(parser.yy.getAccTitle()) .text(parser.yy.getDiagramTitle())
.attr('x', w / 2) .attr('x', w / 2)
.attr('y', conf.titleTopMargin) .attr('y', conf.titleTopMargin)
.attr('class', 'titleText'); .attr('class', 'titleText');