Feature: Gantt progress

0 votes
asked Jan 17 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.

@startgantt

[task] takes 2 days is 10% complete

@endgantt

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

1 Answer

0 votes
answered Jan 17 by plantuml (226,800 points)
selected Jan 20 by mblarsen
 
Best answer

Thanks for the idea.

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

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

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

commented Jan 20 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?
...