Hi there,
I have successfully created a Gantt chart for my Project using the JS code below:
frappe.views.calendar["Project"] = {
field_map: {
start: "exp_start_date",
end: "exp_end_date",
id: "name",
title: "project_name",
allDay: "allDay",
progress: "progress",
},
gantt: true,
filters: [
{
fieldtype: "Link",
fieldname: "project",
options: "Project",
label: __("Project"),
},
],
get_events_method: "frappe.desk.calendar.get_events",
};
However, I’m unable to set task colors in the Gantt chart.
I added a field in the Project DocType with:
-
Fieldname:
custom_color -
Fieldtype:
Color
…but the colors are still not being applied in the Gantt view.
Can someone help me understand how to correctly set or map the color field in the Gantt chart?
Thanks in advance!