Sunday, 5 May 2024

PlantUML : apply colors to creole table cells

Using #color notation, we can apply colors to the table cells.

 

Example 1: Apply colors to individual cell


| <#ff00ff>1 | <#PaleGreen> Krishna | <#PaleVioletRed>34 |

 

Example 2: Apply colors to entire row.


<#YellowGreen>| 2 | Ram | 43 |

 

tableColors.txt

@startuml

scale 1.5

Client -> Server: Client send employees information
Server -> Client: Server process employees data and send response


note left of Client 
Example of simple employees data
|= id |= name |= age |
| <#ff00ff>1 | <#PaleGreen> Krishna | <#PaleVioletRed>34 |
<#YellowGreen>| 2 | Ram | 43 |
end note

@enduml

 

Above snippet generate below diagram.

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment