How to set color of the Gantt unstarted task

0 votes
asked Jan 13, 2022 in Question / help by anonymous
When a task is not 100% done then the task filled with the task color for the percentage but the remaining part is rendered as white. Is it possible to define a different color for the remaining part?

1 Answer

0 votes
answered Jan 14, 2022 by plantuml (294,660 points)

Thanks for the suggestion. We are not 100% satisfied with the syntax, but with last beta, you can have this :

@startgantt
<style>
ganttDiagram {
  task {
    BackGroundColor GreenYellow
    LineColor Green 
  }
  undone {
    BackGroundColor red
  }
}
</style>

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

Is this what you were expecting ?

commented Jan 14, 2022 by The-Lu (63,920 points)

Hello PlantUML team,

If `undone` is only for task....

Is it possible to be `undone` a children of `task`, as `unstarted`:

<style>
ganttDiagram {
  task {
    BackGroundColor GreenYellow

    unstarted {
      BackGroundColor Fuchsia 
    }

    undone {
      BackGroundColor pink
    }
  }
}
</style>

Regards,
Th.

commented Jan 16, 2022 by anonymous
Thank you, it is exactly I looked for!
...