Have created a sequence diagram using PlantUML generating containing a legend and footer.
The footer contains my company's name along with copyright date.
The legend is very close to the footer and I need to insert a new line (or a <br>
or a <p>
) in between the legend and footer. Also, my caption seems to have a large space in between the caption and legend.
My puml DSL file:
@startuml
skinparam Shadowing false
title __Dating API Sequence Diagram__\n
caption \nVersion 1.0 - 6/26/2020 (Draft)\n
autonumber
activate DatingApp
DatingApp -> DatingRestController: hitExternalApi()
activate DatingRestController
DatingRestController -> DatingService: processService()
activate DatingService
DatingService -> DatingService: findProfile()
activate DatingService #90EE90
DatingService -> DatingService: doSomething()
DatingService -> DatingService: doSomethingElse()
deactivate DatingService
DatingService -> DatingRestController: return retValue
DatingRestController -> DatingApp: jsonPayload
deactivate DatingRestController
deactivate DatingApp
legend bottom right
Legend
|=Color |= Name |= Type |= Lifeline |
|<back:#FFFFFF> </back>| DatingApp.hitExternalApi() | method | default |
|<back:#FFFFFF> </back>| DatingRestController.processService() | method | default |
|<back:#FFFFFF> </back>| DatingService.findProfile | method | default |
|<back:#90EE90> </back>| DatingService.doSomething() | method | nested |
|<back:#90EE90> </back>| DatingService.doSomethingElse() | method | nested |
endlegend
center footer MyCompany.com (c) 2020
@enduml
Here's the generated diagram from IntelliJ IDEA:
Question(s):
How to reduce the excessive space with the caption and legend (tried putting an
<hr>
but got an error inside IntelliJ IDEA as a workaround)?How to create horizontal lines (using
<hr>
) inside my sequence diagram to denote different sections?How to place a new line break or
<p>
or\n
in between the legend and footer?
-->
rather than->
). About (2) there is no 'section' in a SD, are you speaking about combined fragment ? Else that can indicate your SD is too complex and must be cut in several SDs – Filaria