当前位置:网站首页>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
边栏推荐
- Brief introduction to mongodb working principle of mongodb series
- 数据基础设施升级窗口下,AI 新引擎的技术方法论
- 多测师肖sirapp中riginal error: Could not extract PIDs from ps output. PIDS: [], Procs: [“bad pid
- How many objects are created after new string ("hello")?
- Figure introduction to neural networks (GNN, GCN)
- How to remove dataframe field column names
- Judge whether the string is empty
- math_ Proving common equivalent infinitesimal & Case & substitution
- PY SQL可以获取到表结构吗?
- 请问下flinkcdc用flinksql提交的话只能一个表提交一个任务吗?那有几千张表的时候还能这么
猜你喜欢

The amazing nanopc-t4 (rk3399) is used as the initial configuration and related applications of the workstation

About Significance Tests

Grafana biaxial graph with your hands

C#连接数据库完成增删改查操作

数字经济专家高泽龙:映客更名映宇宙,元宇宙会成为映客下一个增长引擎吗?

Win11底部状态栏如何换成黑色?Win11底部状态栏换黑色的方法

Leetcode 周赛299

Try except add auxiliary new column

Grafana draws the trend chart

Openharmony - detailed source code of Kernel Object Events
随机推荐
机器学习笔记 temperature+Softmax
Hands on Teaching of servlet use (1)
Bayesian inference problem, MCMC and variational inference
Openharmony - detailed source code of Kernel Object Events
论文笔记:Universal Value Function Approximators
Servlet的使用手把手教学(一)
团体程序设计天梯赛练习题-持续更新中
Friends from Fujian, your old-age insurance is on the cloud!
Analysys analytics' 2022 China Banking privacy computing platform supplier strength matrix analysis' research activity was officially launched
pd. Difference between before and after cut interval parameter setting
h5向日葵作业
Jenkins Pipeline 对Job参数的处理
深度学习需要多强的数学基础?
List adding timer (positive and countdown)
泰山OFFICE技术讲座:WORD奇怪的字体高度
福建的朋友们,你们的养老保险上云啦!
180.1. Log in continuously for n days (database)
First day of new work
论文3 VScode&texlive&SumatraPDF打造完美书写论文工具
grafana绘制走势图