Skip to content

Commit 4fd3f0c

Browse files
committed
Added flowchart title to flowchart in all examples.
1 parent 552d87a commit 4fd3f0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ using Mermaid.Flowcharts.Links;
2121

2222
// Create a new flowchart
2323
FlowchartTitle flowchartTitle = FlowchartTitle.FromString("Basic usage");
24-
Flowchart flowchart = new();
24+
Flowchart flowchart = new(flowchartTitle);
2525

2626
// Create nodes
2727
Node start = Node.Create("start", "Start");
@@ -72,7 +72,7 @@ using Mermaid.Flowcharts.Nodes;
7272

7373
// Create a new flowchart
7474
FlowchartTitle flowchartTitle = FlowchartTitle.FromString("Various node shapes");
75-
Flowchart flowchart = new();
75+
Flowchart flowchart = new(flowchartTitle);
7676

7777
// Create nodes with various shapes
7878
Node rectangle = Node.Create("rectangle", "Rectangle", NodeShape.Rectangle);
@@ -147,7 +147,7 @@ using Mermaid.Flowcharts.Links;
147147

148148
// Create a new flowchart
149149
FlowchartTitle flowchartTitle = FlowchartTitle.FromString("Link styles");
150-
Flowchart flowchart = new();
150+
Flowchart flowchart = new(flowchartTitle);
151151

152152
// Create two nodes
153153
Node a = Node.Create("a", "A");

0 commit comments

Comments
 (0)