Way to change timing diagram line color

0 votes
asked Mar 23 in Wanted features by Vaarai (140 points)

Hello, 

I did not find any way to change the color of timing diagram lines (green by default).

Could it be possible to implement the syntax (or equivalent) described in red below ? 

Additionally, a skinparam to rules these lines color should be awesome !

@startuml
robust "Web Browser" as WB #F00
concise "Web User" as WU #00F

@0
WU is Idle
WB is Idle

@100
WU is Waiting
WB is Processing

@300
WB is Waiting
@enduml

1 Answer

+1 vote
answered Mar 23 by The-Lu (44,040 points)
selected Apr 7 by Vaarai
 
Best answer

Hello A.,

For that you can use style, as:

@startuml
<style>
timingDiagram {
  robust {
    LineColor #F00
  }
  concise {
    LineColor #00F
  }
}
</style>

robust "Web Browser" as WB 
concise "Web User" as WU 

@0
WU is Idle
WB is Idle

@100
WU is Waiting
WB is Processing

@300
WB is Waiting
@enduml

Enjoy.
Regards.

commented Mar 23 by Vaarai (140 points)
Thanks you for your solution,

I'm not able to make it works, I'm using the plantuml jar embeded in VSCode "PlantUML" extension, it use planuml v1.2022.0

Is this version support the style for timing diagram ?
commented Mar 23 by Vaarai (140 points)
Ok, I've tested with the latest plantuml release (without vscode) and it works perfectly, thanks you !!!
commented Mar 23 by The-Lu (44,040 points)

Hello V.,

It seems no, it is a very new enhancement with v1.2022.2.

You must to update to this new version:

Regards.

...