diff --git a/docs/flowchart.md b/docs/flowchart.md index 7e8218728..40d8b2ec3 100644 --- a/docs/flowchart.md +++ b/docs/flowchart.md @@ -18,11 +18,11 @@ graph TD This declares a graph oriented from left to right (`LR`). ``` -flowchart LR +graph LR Start --> Stop ``` ```mermaid -flowchart LR +graph LR Start --> Stop ``` @@ -44,12 +44,12 @@ This renders a flowchart in the same way as graph but with a new rendering metho ### A node (default) ``` -flowchart LR +graph LR id ``` ```mermaid -flowchart LR +graph LR id ``` Note that the id is what is displayed in the box. @@ -61,7 +61,7 @@ found for the node that will be used. Also if you define edges for the node late one previously defined will be used when rendering the box. ``` -flowchart LR +graph LR id1[This is the text in the box] ``` ```mermaid @@ -231,7 +231,7 @@ flowchart LR ### Text on links ``` -flowchart LR +graph LR A-- This is the text! ---B ``` ```mermaid @@ -340,11 +340,11 @@ flowchart LR You can then describe dependencies in a very expressive way. Like the onliner below: ``` -flowchart TB +graph TB A & B--> C & D ``` ```mermaid -flowchart TB +graph TB A & B--> C & D ``` If you describe the same diagram using the the basic syntax, it will take four lines. A @@ -352,7 +352,7 @@ word of warning, one could go overboard with this making the graph harder to rea markdown form. The Swedish word `lagom` comes to mind. It means, not to much and not to little. This goes for expressive syntaxes as well. ``` -flowchart TB +graph TB A --> C A --> D B --> C @@ -431,7 +431,7 @@ end An example below: ``` -flowchart TB +graph TB c1-->a2 subgraph one a1-->a2 @@ -444,7 +444,7 @@ flowchart TB end ``` ```mermaid -flowchart TB +graph TB c1-->a2 subgraph one a1-->a2 @@ -460,14 +460,14 @@ flowchart TB You can also set an excplicit id for the subgraph. ``` -flowchart TB +graph TB c1-->a2 subgraph ide1 [one] a1-->a2 end ``` ```mermaid -flowchart TB +graph TB c1-->a2 subgraph id1 [one] a1-->a2 @@ -543,7 +543,7 @@ flowchart LR; The tooltip text is surrounded in double quotes. The styles of the tooltip are set by the class .mermaidTooltip. ```mermaid -flowchart LR +graph LR A-->B; click A callback "Tooltip" click B "http://www.github.com" "This is a link" @@ -556,7 +556,7 @@ Beginners tip, a full example using interactive links in a html context: ```