Hello J.,
FYI, from Janv. 2020 (See QA-10679) you can now use:
@startgantt
[Task 1] lasts 4 days and is 50% completed
[Task 2] lasts 5 days and is 21% completed
'...
@endgantt
Then, awaiting a buildin function (Wanted feature on QA-14128), for change the color within the taskbar, you can create an user function as:
@startgantt
!function $completion_color($percent)
!$r=white
!if $percent < 25
!$r=crimson
!elseif $percent < 50
!$r=orange
!elseif $percent < 75
!$r=gold
!elseif $percent >= 75
!$r=green
!endif
!return $r
!end function
[0%] lasts 10 days and is 0% completed and is colored in $completion_color(0)
[20%] lasts 10 days and is 20% completed and is colored in $completion_color(20)
[40%] lasts 10 days and is 40% completed and is colored in $completion_color(40)
[60%] lasts 10 days and is 60% completed and is colored in $completion_color(60)
[80%] lasts 10 days and is 80% completed and is colored in $completion_color(80)
[100%] lasts 10 days and is 100% completed and is colored in $completion_color(100)
@endgantt
Enjoy,
If that can help,
Regards,
Th.