Display Shape - Discrete
This behavior allows you to specify a corresponding list of shapes (as strings) and numeric values. When a specified field is less than or equal to one of the numeric values, the agent is assigned to the corresponding shape.
Published by
Shortname
@hash/display_shape_discrete.js
Description

This behavior allows you to specify a corresponding list of shapes (as strings) and numeric values. When a specified field is less than or equal to one of the numeric values, the agent is assigned to the corresponding shape.

Agent Properties

An agent with this behavior needs the following corresponding agent properties:

{
  ...
  "shape_discrete": {
    "field": string, // the field whose values will drive the shape of the agent
    "field_values": [number], // the discrete values of the field to be matched
    "discrete_shapes": [number] // the corresponding shapes for each discrete field value
  }
}