Skip to content

dimension.hierarchies ​

Returns the hierarchies in a dimension.

js
dimension.hierarchies(dimensionName)

Parameters ​

ParameterTypeDescription
dimensionNamestringThe dimension's name.

Returns ​

string

The hierarchies as a JSON string, read with JSON.parse(). Each hierarchy has an id and name. Returns "Error: could not find the dimension specified." when the dimension can't be found.

Examples ​

js
const hierarchies = dimension.hierarchies("time");