Please provide dates in Gantt diagrams

+1 vote
asked Feb 24, 2017 in Closed feature request by jhannes (320 points)

I would like to be able to reference dates in Gantt diagrams. Example syntax:

[Prototype design] starts at [2017/08/01]

(Interesting aside: Mermaid supports Gantt diagrams as well: https://knsv.github.io/mermaid/#gant-diagrams7. The syntax in PlantUML looks like it will be much better, though)

1 Answer

0 votes
answered Feb 24, 2017 by plantuml (179,580 points)
selected Mar 23 by Anthony-Gaudino
 
Best answer

Many thanks for your suggestion!

In last release (V8057) you can now define something like:

@startuml
Project starts the 20th of september 2017
[Prototype design] as [TASK1] lasts 13 days
[TASK1] is colored in Lavender/LightBlue
[Prototype completed] happens at [TASK1]'s end
@enduml

We have added support to ISO 8601 standard.
You can also shorten month name to the 3 first characters.

So you can now have:

Project starts the 2017/9/20
Project starts on the 2017-9-20
Project starts the 20th of sep 2017

We do not support "september the 20th, 2017" yet but this will be added.

Many things remain to be done (for example, possibility to close some days like Saturday, Sunday or specific holidays...) This will be added shortly. Stay tuned :-)

About syntax, it's not that easy to find a simple one. Several tries are usually needed to find better ideas.

So do not hesitate to play with our proposal and to make suggestions: nothing is fixed right now, so you can help here!

Thanks again!

commented Apr 10, 2017 by anonymous
reshown Mar 23 by Anthony-Gaudino
@plantuml It´s this function working now? because I try to add this code but appear syntax error:

Project starts the 20th of september 2017
[Prototype design] as [TASK1] lasts 13 days
[TASK1] is colored in Lavender/LightBlue
[Prototype completed] happens at [TASK1]'s end

I have only this error when I want to add a specific month
commented Jun 6 by anoff
I was wondering if it is/will be possible to also use dates to define start/end dates of individual items in a Gantt chart as OP requested.

Setting project dates works, but being able to define items as well would greatly improve the potential use cases to use Gantt for.
commented Jun 7 by plantuml (179,580 points)
You can have:

@startuml
Project starts the 20th of september 2017
[Prototype design] as [TASK1] lasts 13 days
[TASK1] is colored in Lavender/LightBlue
[Prototype completed] happens at [TASK1]'s end
[Prototype test] lasts 10 days and starts 2017/10/10
[Prototype distribution] lasts 3 days and starts the 25th of october 2017
@enduml

http://www.plantuml.com/plantuml/uml/LP0_JyCm4CNtV8gtCJQXGgo5bGv8i5KPtFXeZ1oVvNj1whV75Bbg9KzFz_xujpEwmdM9tNlHRvc8Ys3WB7ZiEKE_O98for5ALORdxb1FgJndWHSBfpJ26GwVBnzlmuZeZ8PX2-_ErZKr62QDMiGZ9EpTZoGlPRCFfvclSPNRq4cN78NYHymkPqa6nvR_OAZMstEAyLhRNshXacyV-Pky6VhwxeO7Omd7bK5JCs_llGt2qpy4dQXN1BkweKBx1G00

Is this what you are looking for ?
commented Jun 8 by anoff
Yes, awesome! I couldn't figure out I need an *and*

Thanks a lot!
commented Jul 3 by noname
is there a way to define the end of a task with a date?
[Prototype test] ends on 2018-10-25
...