I am using a Scheduling Gantt chart widget in a Workshop dashboard and using the function-backed color config option linked to a function that outputs a map of a schedule containing a conditional property and the hex color String. However, the legend section on the bottom right of the Gantt chart (shown in figure) is not able to recognize the property with which each color connects and instead shows a “No Value” message. Is it possible to configure the legend names using a property or any other way?
P.S. I see that using the Conditional Coloring option allows me to configure the color and name at the same go but I have about 20+ different colors to configure according to a property of the Object Type and multiple similar Gantt charts throughout my Workshop application that all use the same coloring configuration. So, I was hoping there is an easier way to do this.
Yep it’s possible to configure the legend names in your function-backed. If you look at the details of the function used to set the color, you can see that you have the possibility to return the type: FunctionMap<SomeObjectType, Struct<color: string, name: string>>.
It allows you to set the name displayed for each color you define.
Thank you so much for the solution! I do not know why I didn’t just think to check the details of the field but scoured through endless pages of documents.