You can configure a data series control to configure a series of data or a cycle of multiple colors. However, we recommend that you use a group of tabs instead.

Configuration description

FieldDescriptionData typeRequired?Remarks
typeThe type of the control.stringYesNone.
nameThe name of the control.stringYesNone.
defaultThe default value.arrayNoAn array that consists of objects. The object attributes must be the same as the field names defined in the child field.
childThe name of the object.objectNoSet the value of type in this field to object.
child.childThe attributes of the object.objectNoThis field defines the attributes and default values of the objects.
Important The value of the default field in a data series must be an object array. The attributes of the objects in the array must be defined in the child.child field, including the display name, type, and default value.

Value description

ConditionData typeExampleDefault value
Nonearray
[
{"name": "Series 1", value: "Arrival"},
{"name": "Series 2", value: "Departure"}
]
[]

Configuration examples

Configuration example of a data series
"array": {
    "name": "Data Series",
    "type": "array",
    "default": [
      {
        "name": "Series 1",
        "value": "Arrival"
      },
      {
        "name": "Series 2",
        "value": "Departure"
      }
    ],
    "child": {
      "name": "Series <%=i+1%>",
      "type": "object",
      "child": {
        "name": {
          "name" : "Series Name",
          "type": "text",
          "default": "Series"
        },
        "value": {
          "name" : "Series Value",
          "type": "text",
          "default": ""
        }
      }
    }
}