sisense.com
✅ You are viewing documentation for the latest version of Compose SDK.
Version:

Function createAttribute

createAttribute(json): Attribute

Creates an Attribute instance from the given JSON object. If the JSON object contains a granularity property, a LevelAttribute instance is created.

This function is used in the generated data model code to create dimension attributes from an input data source.

See also functions createDimension and createDateDimension.

Parameters

ParameterTypeDescription
jsonanyJSON object representing the attribute

Returns

Attribute

An Attribute instance

Last Updated: