Thursday 14 December 2023

PlantUML: Add label to the arrows in a deployment diagram

You can add label to the connecting arrow using []

node1 -down-> node5 : [down side]

 

You can even use HTML tags for the arrow text.

node1 -left-> node2 : [<b>left side</b>]

 

addLabelToArrow.txt

@startuml

node node1
node node2
node node3
node node4

node1 -left-> node2 : [<b>left side</b>]
node1 -right-> node3 : [right side]
node1 -up-> node4 : [up side]
node1 -down-> node5 : [down side]

@enduml

 

Above snippet generate below diagram.

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment