Feature: Gantt progress

0 votes
asked Jan 17, 2020 in Wanted features by mblarsen (120 points)
This feature request is for the option to specify progress of a given task. A percentage of completeness.


[task] takes 2 days is 10% complete


And it would render the "bar" similar to a progress bar.

1 Answer

0 votes
answered Jan 17, 2020 by plantuml (276,340 points)
selected Jan 20, 2020 by mblarsen
Best answer

Thanks for the idea.

With last beta http://beta.plantuml.net/plantuml.jar you can now have :

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

This has not been widely tested, so feedback is welcome !

commented Jan 20, 2020 by mblarsen (120 points)
I tried it out and it works great. Thank you.

0% will will cause this exception:

Exception in thread "main" java.lang.IllegalArgumentException
        at net.sourceforge.plantuml.ugraphic.URectangle.<init>(URectangle.java:83)
        at net.sourceforge.plantuml.ugraphic.URectangle.<init>(URectangle.java:75)
        at net.sourceforge.plantuml.project.draw.TaskDrawRegular.drawShape(TaskDrawRegular.java:128)
        at net.sourceforge.plantuml.project.draw.TaskDrawRegular.drawU(TaskDrawRegular.java:95)
        at net.sourceforge.plantuml.project.GanttDiagram.drawTasks(GanttDiagram.java:333)
        at net.sourceforge.plantuml.project.GanttDiagram.access$1(GanttDiagram.java:329)
        at net.sourceforge.plantuml.project.GanttDiagram$1.drawU(GanttDiagram.java:191)
        at net.sourceforge.plantuml.ugraphic.ImageBuilder.getFinalDimension(ImageBuilder.java:301)
        at net.sourceforge.plantuml.ugraphic.ImageBuilder.writeImageInternal(ImageBuilder.java:217)

Is there a way to set the tasks to 0% by default so that you only have to sit 'is x% done' when there's progress?
commented Jun 24, 2021 by Martin

many thanks for this great feature. But I found a strange behaviour regarding the progress bar feature.

In a previous version (1.2021.3) the progress bar was drawn over the full task length independent of any closed days. In all versions later the progress bar will be split into several individual bars dependant on the amount of closed days. That looks very strange, because you get several bars with indicates the progress for each section between closed days instead of one progress bar for the whole task.

Is this the expected behaviour?

Many thanks
commented Jun 24, 2021 by plantuml (276,340 points)

Is this the expected behaviour?

No, it's a issue :-)

Could you post here a very short example that shows this issue. Thanks!

commented Jun 24, 2021 by The-Lu (45,820 points)

Here is an example :


commented Jun 24, 2021 by plantuml (276,340 points)
Thanks for the report. This should be fixed in last beta http://beta.plantuml.net/plantuml.jar and on the online server.