This behavior allows you to specify a corresponding list of colors (as strings) and numeric values. When a specified field is less than or equal to one of the numeric values, the color of the agent is assigned based on the corresponding color.
Agent Properties
An agent with this behavior needs the following corresponding agent properties:
{
...
"color_discrete": {
"field": string, // the field whose values will drive the color of the agent
"field_values": [number], // the discrete values of the field to be matched
"discrete_colors": [number] // the corresponding colors for each discrete field value
}
}