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
|
||||||
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
|
||||||
|
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user