Skip to content

complex data

Steven GUEGUEN edited this page Oct 27, 2020 · 4 revisions

Complex data JSON format

Attributes

  • data: Data array, could be a GTS array or a specific data array depending on the data format expected by the component.
  • params: Array of parameters. Each parameter applies to the corresponding data item depending on the component's options
  • globalParams: Map of options which applies to the component

Sample

{
  "data": [
    {
      "c": "class.name",
      "l": {
        "label1": "label1 value",
        "label2": "label2 value"
      },
      "a": {
        "attribute1": "attribute1 value",
        "attribute2": "attribute2 value"
      },
      "v": [
        [
          0,
          0,
          0,
          true
        ],
        [
          0,
          "a"
        ]
      ]
    }
  ],
  "globalParams": {
    "type": "annotation",
    "timeMode": "timestamp"
  }
}

Common global params

Refer to options

Common params

Clone this wiki locally