Hi,
I have a query regarding the color of the IsCritical bar when IsCritical is 'YES' then the bar is shown as green, how can we set bar color to red if the isCritical value is 'YES'.
Thank you.
Support Forum
Hi,
You can use https://bryntum.com/docs/gantt/api/Gantt/view/GanttBase#config-taskRenderer
Example:
taskRenderer({ taskRecord, renderData }) {
if (isCritical) {
renderData.style = 'background-color : red';
}
}