Gantt - Limitation to Time Frame possible?

+1 vote
asked Jan 29 in Question / help by adlergfx (120 points)

Hello,

following minimal example:

Project starts 2024-01-01
[AP1] starts at 2024-01-01 and requires 2 weeks
then [AP2] requires 2 weeks
then [AP3] requires 4 weeks
[AP4] starts at 2024-02-01 and requires 3 weeks

I have started to use PlantUML Gantt beginning of this year and have a detailed plan for the next half year. I have projects that already started two years ago, so they run, but it does not make sense to visualize all that history. For project meetings I want to show the gantt from last week before meeting into the future to next milestone (as example). 

I have moved the Project start date, expecting that all APs starting before Projects start are not showed or only visualized partially. If i move project start all APs are moved instead. So if you move in the example the project start by 1 week (2024-01-08) than AP1 is also moved, even if AP1 start is set to 2024-01-01. The small change in the project start (see below) is moving AP1-3 even if AP1 start is not changed

Project starts 2024-01-08
[AP1] starts at 2024-01-01 and requires 2 weeks
then [AP2] requires 2 weeks
then [AP3] requires 4 weeks
[AP4] starts at 2024-02-01 and requires 3 weeks

 Is this intended? Can I avoid this? Can I show only a part of a gantt (frame between two dates?) without moving Project start??

1 Answer

0 votes
answered Jan 31 by The-Lu (64,760 points)

Hello A., and all,

Can I show only a part of a gantt (frame between two dates?) without moving Project start??

For that you can use `Print between` command as:

@startgantt

Print between 2024-01-08 and 2024-02-03

Project starts 2024-01-01
[AP1] starts at 2024-01-01 and requires 2 weeks
then [AP2] requires 2 weeks
then [AP3] requires 4 weeks
[AP4] starts at 2024-02-01 and requires 3 weeks
@endgantt

Enjoy,
Regards,
Th.

commented Jan 31 by Serge Wenger Work (15,620 points)

The "Print between" command was not in the documentation.

I try to add it in http://alphadoc.plantuml.com/doc/asciidoc/en/gantt-diagram#0

and I comment https://github.com/plantuml/plantuml/issues/377 because I found a bug with Weekly scale

...