[Gantt] Colored links broken on last version

0 votes
asked Apr 27, 2021 in Bug by The-Lu (73,540 points)

Hello PlantUML team,

FYI: 'Colored links' seems broken on last version.

From: https://forum.plantuml.net/11877/how-to-change-color-or-thickness-style-arrows-gantt-diagram?show=11993#a11993

@startuml
Links are colored in blue
[Prototype design] lasts 14 days
[Build prototype] lasts 4 days
[Prepare test] lasts 6 days
[Prototype design] -[#012]-> [Build prototype]
[Prototype design] -[dotted]-> [Prepare test]
@enduml

-> Perhaps now it is deprecated and now we must use instead style for that:

@startuml
<style>
ganttDiagram {
  arrow {
    LineColor blue
  }
}
</style>
'Links are colored in blue
[Prototype design] lasts 14 days
[Build prototype] lasts 4 days
[Prepare test] lasts 6 days
[Prototype design] -[#012]-> [Build prototype]
[Prototype design] -[dotted]-> [Prepare test]
@enduml

Regards,
Th.

1 Answer

0 votes
answered Apr 27, 2021 by plantuml (295,760 points)
selected Apr 28, 2021 by The-Lu
 
Best answer
Yes, you are right. We have removed this syntax because we are now using style.

Usually, we try to not break existing diagrams (to have ascending compatibility), but we made an exception this time, because it seems acceptable to us. (but maybe we should print a specific error message in that case so people knows that they have to use style now?)

Anyway, the documentation has to be updated :-)
commented Apr 28, 2021 by The-Lu (73,540 points)

Thanks for your return,

Anyway, the documentation has to be updated :-)

It's done... Awaiting your agreement on alphadoc.

Regards,
Th.

...