Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mermaid.js to draw a competition tree #88

Open
yannis opened this issue Jun 5, 2022 · 0 comments
Open

Use mermaid.js to draw a competition tree #88

yannis opened this issue Jun 5, 2022 · 0 comments

Comments

@yannis
Copy link
Owner

yannis commented Jun 5, 2022

Example:

graph LR
    k1[Kenshi 1]---f1((1))
    k2[Kenshi 2]-.-f1
    k3[Kenshi 3]-.-f2((2))
    k4[Kenshi 4]---f2
    k5[Kenshi 5]-.-f3((3))
    k6[Kenshi 6]---f3
    k7[Kenshi 7]---f4((4))
    k8[Kenshi 8]-.-f4
    f1-.-f5((5))
    f2---f5
    f3---f6((6))
    f4-.-f6
    f5---f7((7))
    f6-.-f7
    classDef default fill:#fff,color:#000;
    linkStyle default stroke-width:4px,fill:none,stroke:red;

–––––––––––

graph LR
    k1[Kenshi 1]---f1((1))
    k2[Kenshi 2]-.-f1
    k3[Kenshi 3]-.-f2((2))
    k4[Kenshi 4]---f2
    k5[Kenshi 5]-.-f3((3))
    k6[Kenshi 6]---f3
    k7[Kenshi 7]---f4((4))
    k8[Kenshi 8]-.-f4
    f1-.-f5((5))
    f2---f5
    f3---f6((6))
    f4-.-f6
    f5---f7((7))
    f6-.-f7
    classDef default fill:#fff,color:#000;
    linkStyle default stroke-width:4px,fill:none,stroke:red;
Loading
graph LR
    f1("(1)<hr>#128997; k1<hr>#11036; k2")-->f5
    f2("(2)<hr>#128997; k3<hr>#11036; k4")-->f5
    f3("(3)<hr>#128997; k5<hr>#11036; k6")-->f6
    f4("(4)<hr>#128997; k7<hr>#11036; k8")-->f6
    f5("(5)<hr>#128997; k1<hr>#11036; k3")-->f7
    f6("(6)<hr>#128997; k5<hr>#11036; k7")-->f7
    f7("(7)<hr>#128997; 3<hr>#11036; k7")-->k8
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant