mermaid test

graph TD A[Christmas] -->|Get money| B(Go shopping) B --> C{Let me think} C -->|One| D[Laptop] C -->|Two| E[iPhone] C -->|Three| F[fa:fa-car Car]
graph TD A[Hard] -->|Text| B(Round) B --> C{Decision} C -->|One| D[Result 1] C -->|Two| E[Result 2]
graph LR A(用户浏览器) -->|请求| B[[应用服务器]] -->|传递| C[urls.py] -->|映射视图函数| D[views.py] -->|执行| E[models.py] -->|查询| F[(数据库)] F -->|数据| E -->|填充| G[Template] --> B -->|返回| A
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!
classDiagram Animal <|-- Duck Animal <|-- Fish Animal <|-- Zebra Animal : +int age Animal : +String gender Animal: +isMammal() Animal: +mate() class Duck{ +String beakColor +swim() +quack() } class Fish{ -int sizeInFeet -canEat() } class Zebra{ +bool is_wild +run() }
graph LR subgraph "实体集(同类实体)" A[实体 1] B[实体 2] C["……"] end subgraph 实体型 G["实体型(共同特征)"] --> D[[属性 1]] G --> E[[属性 2]] G --> F["……"] end A --> G B --> G C --> G subgraph 主码 I["主码(Primary Key)"] end D --> H[\能够唯一标识实体\] --> I E --> H subgraph 域 K[域] end D --> J[\取值范围\] --> K E --> J
graph BT A[[数据库]] --> B[内模式] B -->|内模式/模式映像| C[模式] C --> D[外模式1] C -->|外模式/模式映像| E[外模式2] C --> F[外模式3] D --> G[应用A] D --> H[应用B] E --> I[应用C] F --> J[应用D] F --> K[应用E]
gantt dateFormat YYYY-MM-DD title Adding GANTT diagram functionality to mermaid excludes weekends %% (`excludes` accepts specific dates in YYYY-MM-DD format, days of the week ("sunday") or "weekends", but not the word "weekdays".) section A section Completed task :done, des1, 2014-01-06,2014-01-08 Active task :active, des2, 2014-01-09, 3d Future task : des3, after des2, 5d Future task2 : des4, after des3, 5d section Critical tasks Completed task in the critical line :crit, done, 2014-01-06,24h Implement parser and jison :crit, done, after des1, 2d Create tests for parser :crit, active, 3d Future task in critical line :crit, 5d Create tests for renderer :2d Add to mermaid :1d section Documentation Describe gantt syntax :active, a1, after des1, 3d Add gantt diagram to demo page :after a1 , 20h Add another diagram to demo page :doc1, after a1 , 48h section Last section Describe gantt syntax :after doc1, 3d Add gantt diagram to demo page :20h Add another diagram to demo page :48h
stateDiagram [*] --> 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
gitGraph options { "nodeSpacing": 150, "nodeRadius": 10 } end commit branch newbranch checkout newbranch commit commit checkout master commit commit merge newbranch