Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Equal width swimlanes in activity diagram

0 votes
The new swimlanes view in the activity diagram is awesome and enables many new usages.

The width of the swimlanes now depends on its content, which seems a sane default. To include diagrams in our marketing material we'd like to have the swimlanes be of similar width, to have it look more orderly.

Can an option be added to the skinparam of swimlane to have all swimlanes render with similar size?

Something like:

swimlaneWidth: [dynamic|equal]
asked Nov 28, 2016 in Wanted features by nicorikken (130 points)

2 Answers

0 votes

Thanks for the suggestion.

In last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar we have added a new skinparam.

You can use skinparam minSwimlaneWidth same if you want all swimlanes to have the same width.
Note that you can also specify a value (in pixel): skinparam minSwimlaneWidth 500
In that case, the minimum width of swimlanes will be 500.

Tell us if it is what you were expecting,

Thanks again,

answered Nov 28, 2016 by plantuml (125,190 points)
Thanks, this is exactly what we were looking for! In terms of usages I was expecting to be able to wrap `minWidth` inside `skinparam swimlane` but that did not work. Something like:

```skinparam swimlane {
  BorderThickness 0
  TitleFontColor black
  TitleFontSize 30
  minWidth same

Perhaps I don't understand the skinparam syntax very well.
Either way the feature will do.
This makes sense.
So we rename the parameter to "swimlaneWidth" in last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
You can then have:
skinparam swimlane {
  BorderThickness 0
  TitleFontColor black
  TitleFontSize 30
  width same
0 votes
This has been released in V8051.
answered Dec 1, 2016 by plantuml (125,190 points)
Support This Project Offer 250 Mo! Follow PlantUML on Twitter