- 流程图
- 示例
- Mermaid 序列图语法参考">更多语法参考:Mermaid 序列图语法参考
流程图
示例
```flow
st=>start: Start:>https://www.zybuluo.com
io=>inputoutput: verification
op=>operation: Your Operation
cond=>condition: Yes or No?
sub=>subroutine: Your Subroutine
e=>end
st->io->op->cond
cond(yes)->e
cond(no)->sub->io
效果如下:
![](https://cdn.nlark.com/yuque/__flowchart/301e435a5fcd0d87489910746b85a1ce.svg#lake_card_v2=eyJ0eXBlIjoiZmxvd2NoYXJ0IiwiY29kZSI6InN0PT5zdGFydDogU3RhcnQ6Pmh0dHBzOi8vd3d3Lnp5YnVsdW8uY29tXG5pbz0-aW5wdXRvdXRwdXQ6IHZlcmlmaWNhdGlvblxub3A9Pm9wZXJhdGlvbjogWW91ciBPcGVyYXRpb25cbmNvbmQ9PmNvbmRpdGlvbjogWWVzIG9yIE5vP1xuc3ViPT5zdWJyb3V0aW5lOiBZb3VyIFN1YnJvdXRpbmVcbmU9PmVuZFxuXG5zdC0-aW8tPm9wLT5jb25kXG5jb25kKHllcyktPmVcbmNvbmQobm8pLT5zdWItPmlvIiwidXJsIjoiaHR0cHM6Ly9jZG4ubmxhcmsuY29tL3l1cXVlL19fZmxvd2NoYXJ0LzMwMWU0MzVhNWZjZDBkODc0ODk5MTA3NDZiODVhMWNlLnN2ZyIsImlkIjoiOGU5YjU3NWYiLCJjYXJkIjoiZGlhZ3JhbSJ9)
<a name="db6a32f8"></a>
#### 更多语法参考:[流程图语法参考](http://adrai.github.io/flowchart.js/)
<a name="7f555101"></a>
### 序列图
<a name="1ee999b7"></a>
#### 示例1
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
效果如下:<br />![序列图示例1.png](https://cdn.nlark.com/yuque/0/2021/png/21434375/1619089442010-0bbdeb49-f64b-462f-89d6-f2ea4fd69fa2.png#clientId=ue6c6eb56-ce09-4&from=ui&id=ZiDM3&margin=%5Bobject%20Object%5D&name=%E5%BA%8F%E5%88%97%E5%9B%BE%E7%A4%BA%E4%BE%8B1.png&originHeight=249&originWidth=376&originalType=binary&size=2774&status=done&style=none&taskId=u424bddd1-8b64-4e51-ad7a-64411d88a99)
<a name="i3GZb"></a>
#### 示例2
Title: Here is a title
A->B: Normal line
B-->C: Dashed line
C->>D: Open arrow
D-->>A: Dashed open arrow
效果如下:<br />![序列图示例2.png](https://cdn.nlark.com/yuque/0/2021/png/21434375/1619089454127-c17000c1-7e56-4f82-9cba-b5f876da1da9.png#clientId=ue6c6eb56-ce09-4&from=ui&id=DrvXF&margin=%5Bobject%20Object%5D&name=%E5%BA%8F%E5%88%97%E5%9B%BE%E7%A4%BA%E4%BE%8B2.png&originHeight=286&originWidth=376&originalType=binary&size=3731&status=done&style=none&taskId=u6e096739-a0c5-499a-96b2-d72bde06929)
<a name="fed0832b"></a>
#### 更多语法参考:[序列图语法参考](http://bramp.github.io/js-sequence-diagrams/)
<a name="ccfc219f"></a>
### 甘特图
甘特图内在思想简单。基本是一条线条图,横轴表示时间,纵轴表示活动(项目),线条表示在整个期间上计划和实际的活动完成情况。它直观地表明任务计划在什么时候进行,及实际进展与计划要求的对比。
<a name="AUmFW"></a>
#### 示例
title 项目开发流程
section 项目确定
需求分析 :a1, 2016-06-22, 3d
可行性报告 :after a1, 5d
概念验证 : 5d
section 项目实施
概要设计 :2016-07-05 , 5d
详细设计 :2016-07-08, 10d
编码 :2016-07-15, 10d
测试 :2016-07-22, 5d
section 发布验收
发布: 2d
验收: 3d
效果如下:<br />![甘特图.png](https://cdn.nlark.com/yuque/0/2021/png/21434375/1619089597550-c3fddb2b-3eac-458f-a40b-4bf1ffbcfa05.png#clientId=ue6c6eb56-ce09-4&from=ui&id=VBTUI&margin=%5Bobject%20Object%5D&name=%E7%94%98%E7%89%B9%E5%9B%BE.png&originHeight=296&originWidth=852&originalType=binary&size=15079&status=done&style=none&taskId=u9a879d90-a78b-4b9f-b4c5-dadcc463046)
<a name="e68e130f"></a>
#### 更多语法参考:[甘特图语法参考](https://knsv.github.io/mermaid/#gant-diagrams)
<a name="f71acda9"></a>
### Mermaid 流程图
<a name="ZLKfC"></a>
#### 示例
A[Hard edge] -->|Link text| B(Round edge)
B --> C{Decision}
C -->|One| D[Result one]
C -->|Two| E[Result two]
效果如下:<br />![Mermaid 流程图.png](https://cdn.nlark.com/yuque/0/2021/png/21434375/1619089613381-1c0df82b-f4cf-42cd-b843-0587341c715d.png#clientId=ue6c6eb56-ce09-4&from=ui&id=cTsEK&margin=%5Bobject%20Object%5D&name=Mermaid%20%E6%B5%81%E7%A8%8B%E5%9B%BE.png&originHeight=161&originWidth=601&originalType=binary&size=11937&status=done&style=none&taskId=u2680f762-0022-4820-bec4-07e49bdd06d)
<a name="bc5c96cf"></a>
#### 更多语法参考:[Mermaid 流程图语法参考](https://knsv.github.io/mermaid/#flowcharts-basic-syntax)
<a name="0dfa16ea"></a>
### Mermaid 序列图
<a name="QJhl8"></a>
#### 示例
Alice->John: Hello John, how are you?
loop every minute
John-->Alice: Great!
end
```
效果如下: