Monday 1 January 2024

PlantUML: Use inline style to customize arrow color, style in a deployment diagram

Following notation can be used to customize color and style of an arrow.

 

#color;line.[bold|dashed|dotted];text:color

 

inlineStyle.txt

@startuml

node node1
node node2
node node3
node node4

node1 --> node2 #line:red;line.dashed;text:red : red dashed
node1 --> node3 #00ff00;line.bold;text:blue : green bold
node1 --> node4  #blue;line.dotted;text:green : blue dotted

@enduml

 

Above snippet generate below diagram.

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment