plantuml

How to mix different plantuml diagram type elements?


I want to have deployment and sequence stuff in one and the same rendered plantuml picture. So I tried the following but it does not work, the rendering shows the sequence stuff for A, B and C as deployment.

How can I force rendering for "A->B" and "B->C" as sequence diagram stuff?

@startuml
file main.c
note right: I want to have description text here

A -> B : main()
note left : program\nentry function
B -> C : load()
note left : another important function
@enduml

Solution

  • I think you need to add your note later:

    @startuml
    title file main.c
    
    A -> B : main()
    note left : program\nentry function
    B -> C : load()
    note left : another important function
    
    note right: I want to have description text here
    @enduml
    

    Result:

    generated output