mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Selecting the correct title for gantt charts
This commit is contained in:
parent
1148039c6b
commit
66f2f42294
@ -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
|
||||
@ -160,7 +160,7 @@ requirementDiagram
|
||||
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
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user