Skip to content

Commit

Permalink
Merge pull request #1492 from NeilCuzon/patch-5
Browse files Browse the repository at this point in the history
Update flowchart.md
  • Loading branch information
GDFaber authored Jun 23, 2020
2 parents d2c47bb + 9da3402 commit e13662d
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions docs/flowchart.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Graph

This statement declares a new graph and the direction of the graph layout.
This statement declares the direction of the Flowchart.

This declares a graph oriented from top to bottom (`TD` or `TB`).
This declares the graph is oriented from top to bottom (`TD` or `TB`).

```
graph TD
Expand All @@ -15,7 +15,7 @@ graph TD
Start --> Stop
```

This declares a graph oriented from left to right (`LR`).
This declares the graph is oriented from left to right (`LR`).

```
graph LR
Expand All @@ -26,18 +26,26 @@ graph LR
Start --> Stop
```

Possible directions are:
## Flowchart Orientation

* TB - top bottom
* BT - bottom top
* RL - right left
* LR - left right
Possible FlowChart orientations are:

* TD - same as TB
* TB - top to bottom
* TD - top-down/ same as top to bottom
* BT - bottom to top
* RL - right to left
* LR - left to right

## flowchart

This renders a flowchart in the same way as a graph but with a new rendering method opening up for long requested features such as: more arrow types, multi directional arrows, and linking to and from subgraphs. Apart from the graph type, flowchart/graph, the syntax is the same. This is currently experimental but when the beta period is over both the graph and flowchart keywords will render in the new way. This means it is ok to start beta testing flowcharts.

## Flowcharts

This renders a flowchart that allows for features such as: more arrow types, multi directional arrows, and linking to and from subgraphs.

Apart from the graph type, the syntax is the same. This is currently experimental but when the beta period is over, both the graph and flowchart keywords will render in the new way. This means it is ok to start beta testing flowcharts.


## An important note on Flowchart nodes, do not type the word "end" as a Flowchart node. Capitalize all or any one the letters to keep the flowchart from breaking, i.e, "End" or "END". Or you can apply this [workaround](https://github.com/mermaid-js/mermaid/issues/1444#issuecomment-639528897).

## Nodes & shapes

Expand All @@ -52,7 +60,7 @@ graph LR
graph LR
id
```
Note that the id is what is displayed in the box.
# Note that the id is what is displayed in the box.

### A node with text

Expand All @@ -69,6 +77,7 @@ graph LR
id1[This is the text in the box]
```

## Node Shapes

### A node with round edges

Expand Down

0 comments on commit e13662d

Please sign in to comment.