Skip to content

Instantly share code, notes, and snippets.

@francho
Created October 18, 2019 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save francho/7d919e187e38068f5531e02dc22ec885 to your computer and use it in GitHub Desktop.
Save francho/7d919e187e38068f5531e02dc22ec885 to your computer and use it in GitHub Desktop.
Typora.io sample graphs

Flowchart.js

http://flowchart.js.org/

st=>start: Start:>http://www.google.com[blank]
e=>end:>http://www.google.com
op1=>operation: My Operation
sub1=>subroutine: My Subroutine
cond=>condition: Yes
or No?:>http://www.google.com
io=>inputoutput: catch something...
para=>parallel: parallel tasks

st->op1->cond
cond(yes)->io->e
cond(no)->para
para(path1, bottom)->sub1(right)->op1
para(path2, top)->op1

Mermaid

https://knsv.github.io/mermaid/#/

Sequence

participant Alice
participant Bob
Alice->John: Hello John, how are you?
Note right of John: Rational thoughts <br/>prevail!
John-->Alice: Great!
John->Bob: How about you?
Bob-->John: Jolly good!

Gant

gantt
dateFormat  YYYY-MM-DD
title Adding GANTT diagram to mermaid
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

Flowchart

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment