Multilingual Wiki Documentation

You are currently using syntax.
In an attempt to improve PlantUML documentation...
Please do not use this website for your own diagrams.
You can click here and use the online server here for your own documentation.

Recent changes    Wiki Toc    View page history    Add new chapter    Reorder page    Raw

Gantt Diagram

This is only a proposal and subject to change.

You are very welcome to create a new discussion on this future syntax. Your feedbacks, ideas and suggestions help us to find the right solution.

The Gantt is described in natural language, using very simple sentences (subject-verb-complement).

PlantUML Team
Welcome !
All contributions made here are public.
Thanks for helping us to improve PlantUML documentation !

Declaring tasks

Tasks defined using square bracket. Their durations are defined using the last verb:

@startuml
[Prototype design] lasts 15 days
[Test prototype] lasts 10 days
@enduml

PlantUML Team
You can use this chat to ask questions or to give any feedback on Declaring tasks

Adding constraints

It is possible to add constraints between task.

@startuml
[Prototype design] lasts 15 days
[Test prototype] lasts 10 days
[Test prototype] starts at [Prototype design]'s end
@enduml

@startuml
[Prototype design] lasts 10 days
[Code prototype] lasts 10 days
[Write tests] lasts 5 days
[Code prototype] starts at [Prototype design]'s end
[Write tests] starts at [Code prototype]'s start
@enduml

PlantUML Team
You can use this chat to ask questions or to give any feedback on Adding constraints

Short names

It is possible to define short name for tasks with the as keyword.

@startuml
[Prototype design] as [D] lasts 15 days
[Test prototype] as [T] lasts 10 days
[T] starts at [D]'s end
@enduml

PlantUML Team
You can use this chat to ask questions or to give any feedback on Short names

Customize colors

It also possible to customize colors.

@startuml
[Prototype design] lasts 13 days
[Test prototype] lasts 4 days
[Test prototype] starts at [Prototype design]'s end
[Prototype design] is colored in Fuchsia/FireBrick
[Test prototype] is colored in GreenYellow/Green
@enduml

PlantUML Team
You can use this chat to ask questions or to give any feedback on Customize colors

Completion status

You can set the completion status of a task.

@startgantt
[foo] lasts 21 days
[foo] is 40% completed
[bar] lasts 30 days and is 10% complete
@endgantt

PlantUML Team
You can use this chat to ask questions or to give any feedback on Completion status

Milestone

You can define Milestones using the happens verb.

@startuml
[Test prototype] lasts 10 days
[Prototype completed] happens at [Test prototype]'s end
[Setup assembly line] lasts 12 days
[Setup assembly line] starts at [Test prototype]'s end
@enduml

PlantUML Team
You can use this chat to ask questions or to give any feedback on Milestone

Hyperlinks

You can add hyperlinks to tasks.

@startgantt
[task1] lasts 10 days
[task1] links to [[http://plantuml.com]]
@endgantt

PlantUML Team
You can use this chat to ask questions or to give any feedback on Hyperlinks

Calendar

You can specify a starting date for the whole project. By default, the first task starts at this date.

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

PlantUML Team
You can use this chat to ask questions or to give any feedback on Calendar

Changing scale

You can change scale for very long project

@startgantt
printscale weekly
Project starts the 20th of september 2020
[Prototype design] as [TASK1] lasts 130 days
[TASK1] is colored in Lavender/LightBlue
[Testing] lasts 20 days
[TASK1]->[Testing]
@endgantt

PlantUML Team
You can use this chat to ask questions or to give any feedback on Changing scale

Close day

It is possible to close some day.

@startuml
project starts the 2018/04/09
saturday are closed
sunday are closed
2018/05/01 is closed
2018/04/17 to 2018/04/19 is closed
[Prototype design] lasts 14 days
[Test prototype] lasts 4 days
[Test prototype] starts at [Prototype design]'s end
[Prototype design] is colored in Fuchsia/FireBrick
[Test prototype] is colored in GreenYellow/Green
@enduml

PlantUML Team
You can use this chat to ask questions or to give any feedback on Close day

Simplified task succession

It's possible to use the then keyword to denote consecutive tasks.

@startuml
[Prototype design] lasts 14 days
then [Test prototype] lasts 4 days
then [Deploy prototype] lasts 6 days
@enduml

You can also use arrow ->

@startuml
[Prototype design] lasts 14 days
[Build prototype] lasts 4 days
[Prepare test] lasts 6 days
[Prototype design] -> [Build prototype]
[Prototype design] -> [Prepare test]
@enduml

PlantUML Team
You can use this chat to ask questions or to give any feedback on Simplified task succession

Separator

You can use -- to separate sets of tasks.

@startuml
[Task1] lasts 10 days
then [Task2] lasts 4 days
-- Phase Two --
then [Task3] lasts 5 days
then [Task4] lasts 6 days
@enduml

PlantUML Team
You can use this chat to ask questions or to give any feedback on Separator

Working with resources

You can affect tasks on resources using the on keyword and brackets for resource name.

@startuml
[Task1] on {Alice} lasts 10 days
[Task2] on {Bob:50%} lasts 2 days
then [Task3] on {Alice:25%} lasts 1 days
@enduml

PlantUML Team
You can use this chat to ask questions or to give any feedback on Working with resources

Complex example

It also possible to use the and conjunction.

You can also add delays in constraints.

@startuml
[Prototype design] lasts 13 days and is colored in Lavender/LightBlue
[Test prototype] lasts 9 days and is colored in Coral/Green and starts 3 days after [Prototype design]'s end
[Write tests] lasts 5 days and ends at [Prototype design]'s end
[Hire tests writers] lasts 6 days and ends at [Write tests]'s start
[Init and write tests report] is colored in Coral/Green
[Init and write tests report] starts 1 day before [Test prototype]'s start and ends at [Test prototype]'s end
@enduml

PlantUML Team
You can use this chat to ask questions or to give any feedback on Complex example


Please report any bugs to plantuml@gmail.com or here.
This website is still in beta testing.