Add a @startgantt and @endgantt for Gantt diagrams

0 votes
asked Oct 12, 2017 in Closed feature request by anonymous

Currently PlantUML has to guess which kind of diagrams (Sequence? Class? Gantt?) when using "->" arrow.

Why not just declare it?    I don't think that it makes things more complex (and its easier for a reader to find the right page in the manual :-))

Something like this for Gantt diagrams:

@startgantt

@endgantt

1 Answer

0 votes
answered Oct 13, 2017 by plantuml (201,100 points)
selected Mar 21, 2018 by Anthony-Gaudino
 
Best answer


That definitively makes sense!

So with last beta https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0 , you can now have:

@startgantt
[My task1] as [TASK1] lasts 4 days
[My task2] as [TASK2] lasts 6 days
[My task3] as [TASK3] lasts 8 days

TASK1 -> TASK3
TASK2 -> TASK3
@endgantt


Note that @startuml is still supported for Gantt.
It will be removed in some future, so that people can smoothly migrate to the new @startgantt.
Thanks for the suggestion!

...