Diagram Examples for Marcus
Flowcharts
graph LR
A[Start] --> B{Failure?};
B -->|Yes| C[Investigate...];
C --> D[Debug];
D --> B;
B ---->|No| E[Success!];
Sequence Diagrams
sequenceDiagram
autonumber
Server->>Terminal: Send request
loop Health
Terminal->>Terminal: Check for health
end
Note right of Terminal: System online
Terminal-->>Server: Everything is OK
Terminal->>Database: Request customer data
Database-->>Terminal: Customer data
sequenceDiagram
participant dotcom
participant iframe
participant viewscreen
dotcom->>iframe: loads html w/ iframe url
iframe->>viewscreen: request template
viewscreen->>iframe: html & javascript
iframe->>dotcom: iframe ready
dotcom->>iframe: set mermaid data on iframe
iframe->>iframe: render mermaid
flowchart LR
ItemA-->ItemB-->ItemC
Coffee Machine Not Working?
graph TD
A(Coffee machine <br>not working) --> B{Machine has power?}
B -->|No| H(Plug in and turn on)
B -->|Yes| C{Out of beans or water?} -->|Yes| G(Refill beans and water)
C -->|No| D{Filter warning?} -->|Yes| I(Replace or clean filter)
D -->|No| F(Send for repair)