Extent

Edit this page

The extent transform finds the extent of a field and stores the result in a parameter.

// Any View Specification
{
  ...
  "transform": [
    {"extent": ..., "param": ...} // Extent Transform
     ...
  ],
  ...
}

Extent Transform Definition

Property Type Description
extent String

Required. The field of which to get the extent.

param String

Required. The output parameter produced by the extent transform.

Usage

Given the following data:

"data": {
  "values": [
    {"a": "A", "b": 28}, {"a": "B", "b": 55}, {"a": "C", "b": 43},
    {"a": "D", "b": 91}, {"a": "E", "b": 81}, {"a": "F", "b": 53},
    {"a": "G", "b": 19}, {"a": "H", "b": 87}, {"a": "I", "b": 52}
  ]
}

And the transform:

"transform": [
  {"extent": "b", "param": "b_extent"}
]

this example produces the param b_extent with the value [19, 91].

Example