Skip to content

dimension.elements ​

Returns a page of the element names in a dimension.

js
dimension.elements(dimensionName, offset, count)

Parameters ​

ParameterTypeDescription
dimensionNamestringThe dimension's name.
offsetnumberHow many elements to skip from the start.
countnumberThe most elements to return.

Returns ​

string

The element names as a JSON string, read with JSON.parse(). Returns "Error: could not find the dimension specified." when the dimension can't be found.

Examples ​

js
const elements = JSON.parse(dimension.elements("time", 1, 5));