Solid Life Line in Sequence Diagrams

0 votes
asked Dec 1, 2014 in Wanted features by anonymous
I'd like to have the option to have the lifeline (vertical lines) in seqence diagrams solid, and not dahsed.

1 Answer

0 votes
answered Dec 1, 2014 by plantuml (295,760 points)

Hello,

We have just implemented this in V8010:

@startuml
skinparam lifelineStrategy solid
Bob -> Alice : hello
Alice -> Bob : ok
Alice -> Bob : ok2
Alice -> Bob : ok3
@enduml

 

Many thanks for the suggestion!

commented Oct 19, 2016 by boshka (3,960 points)
How about coloring of the vertical lines per component?

A good setting would be a global one that would just follow the color of the participant box.

Another way is to have an ability to define to color when defining a participant
commented Jun 19, 2020 by anonymous
you can use

skinparam Sequence {

    LifelineBorderColor blue

}
commented Feb 25, 2022 by NickD
But can this be done per component (i.e. different colors for each participant's lifeline)?
commented Feb 26, 2022 by Martin (9,120 points)
edited Feb 26, 2022 by Martin

You mean something like this?

@startuml
<STYLE>
sequenceDiagram {
  .bob_style {
    ShowStereotype false
    Lifeline {
      linecolor red
      linestyle solid
      lineThickness 3
    }
  }
  .alice_style {
    ShowStereotype false
    Lifeline {
      linecolor green
      linestyle 2
      lineThickness 10
    }
  }
}
</STYLE>
participant Bob <<bob_style>>
participant Alice <<alice_style>>
Bob -> Alice : hello
@enduml

...