It says to set visual to ‘base-colors’ and set cellColors to true, but it doesn’t work.
It works in the link below, but not in my code.
Currently, the output is working fine, but the color is black or gray on the timeline side.
Below is my code
gantt.templates.task_class = function (start, end, task) {
if (task.type === ‘project’) {
return ‘gantt-parent’
} else if (task.type === ‘milestone’) {
return ‘gant-milestone’
} else {
return ‘gant-lowest-child’
}
}
gantt.exportToExcel({
name: myName,
server: myServer,
local: myLocal,
columns: myColumns,
data: myData,
cellColors: true,
visual: ‘base-colors’,
})
When exporting a pdf or png, you can use the header: <style> ${this.getStyle()} </style>
, I sent my css in this way and wondering how excel should handle it.