Dim: Number;
The Dim property determines dimension by attribute key.
To execute the example, create a service for working with time series named hieSrv (see «HieService.getChildEls»). Add the following code in the document open event handler:
//Get attributes
var attrs = hie.getAttributes();
//Get first attribute key
var attrKey = attrs[0].k;
console.log("Get attribute key dimension");
var dim = hie.getDim(attrKey);
console.log(dim);
After executing the example the browser console displays JSON object of a dimension by key of the first attribite, and shows an appropriate message.
See also: