当前位置:网站首页>Markdown drawing Mermaid practical tutorial
Markdown drawing Mermaid practical tutorial
2022-06-28 19:23:00 【No regrets!】
Mermaid Is a tool for drawing flow charts 、 State diagram 、 Sequence diagram 、 Gantt chart Library , Use JS Render locally , Widely integrated into many Markdown Editor .
Mermaid As a use JS Rendered Library , Generated is not a “ picture ”, It's a piece of HTML Code .
Click to enter the official website
Click to enter Github Project address
1. mermaid Definition

2. flow chart
The syntax is as follows :
graph LR; # among LR Direction A --> B # Different arrows indicate
a. Direction and arrow meaning
| Diction graph x; | meaning | arrow | meaning |
|---|---|---|---|
TB | From top to bottom | > | Add tail arrow |
BT | From bottom to top | - | Do not add tail arrows |
RL | From left to right | -- | Single line |
LR | From right to left | --text-- | Single line plus text |
== | Thick line | ||
==text== | Bold lines with text | ||
-.- | Dotted line | ||
-.text.- | Dotted line with text |
b. Node meaning
Default square
id1[ square ]
id2( Round edged rectangle )
id3([ Stadium shape ])
id4[[ Subroutine ]]
id5[( cylindrical )]
id6(( circular ))
id1{
The diamond }
id2{
{
hexagon }}
id3[/ parallelogram /]
id4[\ Inverse parallelogram \]
id5[/ trapezoid \]
id6[\ Reverse trapezoid /]
c. Example
graph LR;
A>"Ubuntu<br>(Linux)"] -.soft.-> C{
TV}
B["MAC"] ==> D((ARM64))
D--> C
A --> B
graph LR
a---b
b-- Text 1!---c
c---| Text 2|d
d===e
e== Text 3===f
f-.-g
g-. Text .-h
- Extend the connection :
Add corresponding characters , As shown in the figure below B To E, Added a... To the connection-. Characters can be added more than once .
graph LR
A[Start] --> B{
Is it?};
B -->|Yes| C[OK];
C --> D[Rethink];
D --> B;
B --->|No| E[End];
- Multiple chains
graph LR
a --> b & c--> d
A & B--> C & D
X --> M
X --> N
Y --> M
Y --> N
- notes
%% This is a comment , Not visible in rendered view - Subgraphs
%% This is a comment , Not visible in rendered view
flowchart TB
c1-->a2
subgraph one
a1-->a2
end
subgraph two
b1-->b2
end
subgraph three
c1-->c2
end
one --> two
three --> two
two --> c2
边栏推荐
- 怎样去除DataFrame字段列名
- Group programming TIANTI competition exercise - continuously updating
- The white paper on the panorama of the digital economy and the digitalization of consumer finance were released
- Variable autoencoders (vaes)
- 我是刚购买的adb mysql服务,我每做一个操作,比如建表,都会弹出这个问题,请问这是什么问题?
- NanoPC-T4(RK3399) game1 oled(I2C)显示时间天气温度
- Shell script batch modify file directory permissions
- 道路千万条,为什么这家创新存储公司会选这条?
- Ffmpeg learning summary
- try except 添加辅助新列
猜你喜欢

Bayesian inference problem, MCMC and variational inference

Industry analysis - quick intercom, building intercom

Figure introduction to neural networks (GNN, GCN)

Upward and downward transformation

How many objects are created after new string ("hello")?

颜色渐变的FontAwesome图标

SQL Server2019 新建 SQL Server身份验证用户名 并登录

math_证明常用等价无穷小&案例&代换

应用实践 | 10 亿数据秒级关联,货拉拉基于 Apache Doris 的 OLAP 体系演进(附 PPT 下载)

微博评论的高性能高可用计算架构方案
随机推荐
Leetcode 周赛299
电脑如何检查驱动程序是否正常
判断字符串是否为空
pd.cut 区间参数设定之前后区别
Grafana biaxial graph with your hands
智能计算系统2 bangc算子开发的demo (CPU和MLU270的异构编程流程)
Some error prone points of C language pointer
让企业数字化砸锅和IT主管背锅的软件供应链安全风险指南
Markdown绘图mermaid实用教程
matlab 二维或三维三角剖分
从设计交付到开发,轻松畅快高效率!
C语言-函数知识点
Figure introduction to neural networks (GNN, GCN)
团体程序设计天梯赛练习题-持续更新中
秋招经验分享 | 银行笔面试该怎么准备
SQL Server2019 新建 SQL Server身份验证用户名 并登录
math_ Proving common equivalent infinitesimal & Case & substitution
G biaxial graph SQL script
道路千万条,为什么这家创新存储公司会选这条?
Render function parsing