Gantt chart with style renders with wrong colors

0 votes
asked Nov 18 in Bug by Håkon

Gantt charts with style renders with the wrong colors. With the following code, I expected to see a task with a black frame and light green filling, but it displays as a purple frame with yellow filling:

@startgantt
<style>
ganttDiagram {
  task {
    BackGroundColor lightgreen
    LineColor black
  }
}
</style>

[Task] lasts 10 days and is 50% complete
@endgantt

See graphics here: https://www.plantuml.com/plantuml/uml/BOwn2W8n44Jx_Offh3qBkqCE5MmixSHYlImn99T8TYqEkNzNejqCRnZUeCRLF6SpwjNc93jgxHZOLvxm9i1OOml0diTugkMLtQ6aKf62VvYl8hdXSyZo0_VqNHAmq4Bz-lzCrmjhl26nccBJmV6iuEmG5DjkXR5CpoGcD4XspUC3

1 Answer

0 votes
answered Nov 18 by The-Lu (36,540 points)
 
Best answer

Hello H.,

For that use `unstartedTask`:

@startgantt
<style>
ganttDiagram {
  unstartedTask {
    BackGroundColor lightgreen
    LineColor black
  }
}
</style>

[Task] lasts 10 days and is 50% complete
@endgantt

See ref. here:

I can update the doc. with that,

If that can help,
Regards,
Th.

commented Nov 19 by Håkon
Thank you, Th., that solved my problem. It would be nice to have this in the documentation.
...