How do you change the text color of the bar on a Gantt chart? I have a Gantt chart in WinUI that I'm trying to replicate in WebUI. The bars are colored based on the data (and a small bit of logic). I also have text on the bars.
The only way I can find to make sure the text shows up is change the css. But the text doesn't respond to anything but the [i]stroke[/i] property.
Here's the css, and below is the result:
[code].aimms-widget .tag-ganttchart .annotation-Red_100\% {
stroke: black;
fill: rgb(255,50,50);
}
.aimms-widget .tag-ganttchart .annotation-Green_100\% {
stroke: white;
fill: rgb(50,255,50);
}
.aimms-widget .tag-ganttchart .annotation-Blue_100\% {
stroke: white;
fill: rgb(50,50,255);
}
.aimms-widget .tag-ganttchart .annotation-Orange_100\% {
stroke: black;
fill: rgb(255,153,50);
}
[/code]
[img]https://uploads-eu-west-1.insided.com/aimms-en/attachment/7b081a8c-2e24-45cb-8d05-02681d6d97da.png[/img]
Is there any other way to change the text without also having the stroke around the bar change?