首页 分享 Mermaid 在线绘图工具

Mermaid 在线绘图工具

来源:花匠小妙招 时间:2025-05-13 17:44

Mermaid 是一种基于文本的图表生成工具,它允许用户通过简单的文本语法来创建和修改各种类型的图表。

Mermaid 使用类似 Markdown 的语法,用户可以通过编写简单的文本代码来生成复杂的图表。

支持的图表类型

Mermaid 支持多种图表类型,包括但不限于:

流程图(Flowcharts):用于表示流程或过程中的步骤。 序列图(Sequence Diagrams):用于表示对象之间的交互。 甘特图(Gantt Charts):用于项目管理和时间规划。 类图(Class Diagrams):用于表示类及其关系。 状态图(State Diagrams):用于描述系统状态及其转换。 饼图(Pie Charts):用于展示数据的比例关系。 实体关系图(Entity Relationship Diagrams, ERDs):用于表示数据库的实体及其关系。

流程图

flowchart LR A[Hard] -->|Text| B(Round) B --> C{Decision} C -->|One| D[Result 1] C -->|Two| E[Result 2]

时序图

sequenceDiagram Alice->>John: Hello John, how are you? loop HealthCheck John->>John: Fight against hypochondria end Note right of John: Rational thoughts! John-->>Alice: Great! John->>Bob: How about you? Bob-->>John: Jolly good!

甘特图

gantt section Section Completed :done, des1, 2014-01-06,2014-01-08 Active :active, des2, 2014-01-07, 3d Parallel 1 : des3, after des1, 1d Parallel 2 : des4, after des1, 1d Parallel 3 : des5, after des3, 1d Parallel 4 : des6, after des4, 1d

类图

classDiagram Class01 <|-- AveryLongClass : Cool <<Interface>> Class01 Class09 --> C2 : Where am I? Class09 --* C3 Class09 --|> Class07 Class07 : equals() Class07 : Object[] elementData Class01 : size() Class01 : int chimp Class01 : int gorilla class Class10 { <<service>> int id size() }

状态图

[*] --> Still Still --> [*] Still --> Moving Moving --> Still Moving --> Crash Crash --> [*]

饼图

pie "Dogs" : 386 "Cats" : 85 "Rats" : 15

用户体验旅程图

journey title My working day section Go to work Make tea: 5: Me Go upstairs: 3: Me Do work: 1: Me, Cat section Go home Go downstairs: 5: Me Sit down: 3: Me

C4 图

C4Context title System Context diagram for Internet Banking System Person(customerA, "Banking Customer A", "A customer of the bank, with personal bank accounts.") Person(customerB, "Banking Customer B") Person_Ext(customerC, "Banking Customer C") System(SystemAA, "Internet Banking System", "Allows customers to view information about their bank accounts, and make payments.") Person(customerD, "Banking Customer D", "A customer of the bank, <br/> with personal bank accounts.") Enterprise_Boundary(b1, "BankBoundary") { SystemDb_Ext(SystemE, "Mainframe Banking System", "Stores all of the core banking information about customers, accounts, transactions, etc.") System_Boundary(b2, "BankBoundary2") { System(SystemA, "Banking System A") System(SystemB, "Banking System B", "A system of the bank, with personal bank accounts.") } System_Ext(SystemC, "E-mail system", "The internal Microsoft Exchange e-mail system.") SystemDb(SystemD, "Banking System D Database", "A system of the bank, with personal bank accounts.") Boundary(b3, "BankBoundary3", "boundary") { SystemQueue(SystemF, "Banking System F Queue", "A system of the bank, with personal bank accounts.") SystemQueue_Ext(SystemG, "Banking System G Queue", "A system of the bank, with personal bank accounts.") } } BiRel(customerA, SystemAA, "Uses") BiRel(SystemAA, SystemE, "Uses") Rel(SystemAA, SystemC, "Sends e-mails", "SMTP") Rel(SystemC, customerA, "Sends e-mails to")

相关知识

随时随地画:7款在线绘图工具让创作更自由
Obsidian 插件:Excalidraw 完美的绘图工具
9个免费的AI绘图工具,快速生成流程图和办公图表
科研绘图不再难!8款顶级工具推荐,轻松搞定复杂数据展示,完全免费!
如何巧妙使用CorelDRAW的绘图工具?
AI绘图生成器有哪些?好用工具推荐
神经网络绘图软件推荐合集
免费在线数据流图制作工具,简单实用!
强烈推荐!好看免费全面的在线绘图平台,点点即可快速组合成好看的示意图!
流程图的5个规范画法,绘图必看!

网址: Mermaid 在线绘图工具 https://www.huajiangbk.com/newsview1946744.html

所属分类:花卉
上一篇: drawio使用教程!导入代码一
下一篇: 畲村新事多

推荐分享