Mermaid: Difference between revisions

No edit summary
remove non-working examples
Line 121: Line 121:
+run()
+run()
}
}
}}
= State Diagram =
{{#mermaid:stateDiagram
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
}}
= Pie Chart =
{{#mermaid:pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
"Rats" : 15
}}
= Entity Relationship Diagram =
{{#mermaid:erDiagram
        CUSTOMER }|..|{ DELIVERY-ADDRESS : has
        CUSTOMER ||--o{ ORDER : places
        CUSTOMER ||--o{ INVOICE : "liable for"
        DELIVERY-ADDRESS ||--o{ ORDER : receives
        INVOICE ||--|{ ORDER : covers
        ORDER ||--|{ ORDER-ITEM : includes
        PRODUCT-CATEGORY ||--|{ PRODUCT : contains
        PRODUCT ||--o{ ORDER-ITEM : "ordered in"
}}
}}