Skip to content

Commit

Permalink
Selecting the correct title for gantt charts
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed May 24, 2022
1 parent 1148039 commit 66f2f42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cypress/platform/knsv.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
commit
commit
</div>
<div class="mermaid" style="width: 50%;">
<div class="mermaid2" style="width: 50%;">
sequenceDiagram
title: My Sequence Diagram Title
accTitle: My Acc Sequence Diagram
Expand Down Expand Up @@ -160,7 +160,7 @@
a1-->a2-->a3
end
</div>
<div class="mermaid2" style="width: 100%;">
<div class="mermaid" style="width: 100%;">
gantt
accTitle: My gantt chart
accDescr: My my gantt chart Description
Expand Down
2 changes: 1 addition & 1 deletion src/diagrams/gantt/ganttRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const draw = function (text, id) {

svg
.append('text')
.text(parser.yy.getAccTitle())
.text(parser.yy.getDiagramTitle())
.attr('x', w / 2)
.attr('y', conf.titleTopMargin)
.attr('class', 'titleText');
Expand Down

0 comments on commit 66f2f42

Please sign in to comment.