Monday 25 September 2023

PlantUML: link map value to other object in object diagram

Using the symbol *->, we can map a value to other object. Use more dashes to improve the readability of diagram.

linkMapValueToObject.txt

@startuml

object "New Delhi" as newDelhi {
	population: 32066000
}

object Moscow {
	population: 11900000
}

object Berlin {
	population: 3640000
}

map CountryCapitals1 {
	India *--> newDelhi
	Russia *--> Moscow
	Germany *--> Berlin
}

@enduml

Above snippet generate below diagram.



 

  

Previous                                                    Next                                                    Home

No comments:

Post a Comment