Clarifying display of overlapping time constraints and highlighted periods

0 votes
asked Jul 7, 2023 in Wanted features by VM

I tried the following example

```
@startuml
concise "Resource 1" as r1

@0
r1 is {-}

@30
r1 is Reservation1

@60
r1 is Reservation2

@65
r1 is Reservation3

@70
r1 is {-}

@r1

highlight 20 to 40 #Cyan : Reservation2 ACK Period
highlight 50 to 70 #Red : Reservation2 ACK Period
highlight 55 to 75 #Gold : Reservation3 ACK Period

r1@20 <-> @40 : "Reservation1 ACK Period"
r1@50 <-> @70 : "Reservation2 ACK Period"
r1@55 <-> @75 : "Reservation3 ACK Period"

@enduml
```

Which right now gives the following :

PlantUML diagram

Because of overlapping, the display isn't clear :
Could we have the time constraints not on the same line when overlapping, and could we have hatched overlapping periods to show the overlapping periods different colors ?

commented Jul 10, 2023 by The-Lu (70,400 points)

Hi V., and all,

Awaiting correction, here is a possible workaround, using '\n' and alpha color

@startuml
concise "Resource 1" as r1

@0
r1 is {-}

@30
r1 is Reservation1

@60
r1 is Reservation2

@65
r1 is "\n\nReservation3"

@70
r1 is {-}

@r1

highlight 20 to 40 #Cyan : Reservation2 ACK Period
highlight 50 to 70 #ff0000CC : Reservation2 ACK Period
highlight 55 to 75 #FFD700CC : \nReservation3 ACK Period

r1@20 <-> @40 : "Reservation1 ACK Period"
r1@50 <-> @70 : "Reservation2 ACK Period"\n
r1@55 <-> @75 : "Reservation3 ACK Period"

@enduml

Enjoy,
Regards,
Th.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...