What steps are needed in order to dynamically set the color of a chart field in Process Mining apps?
One of the columns of a chart requires colors to be set dynamically, according to the content of the specific column.
This scenario can be set by using the following steps,
- On the selected table, create a new map, by right-clicking the table name, and selecting new map
- In the "Edit map" screen, input a name for the map, select the Attribute name and press the Rebuild button, as shown below
- A warning message highlighting the creation of a category for each value of the chart, is shown. Click OK.
- There will be a redirection to the MAP screen, where a color for each value will be shown. In this screen, it should be possible to alter the colors as required. Adjust colors and press APPLY and OK.
- Go to the Advanced section and select the "Category" sections of the field on which you would like to apply the color
- Scroll down to the Font section of the Category, and set
- Color method: By expression
- Color attribute:
- Next to the Value field, click on and set an expression to it. Eg: any(activity). After clicking OK, the map will be applied.