insightHasDataDefined()
Home > @gooddata/sdk-model > insightHasDataDefined
insightHasDataDefined() function
Tests whether insight contains valid definition of data to visualise - meaning at least one attribute or one measure is defined in the insight.
Signature:
export declare function insightHasDataDefined(insight: IInsightDefinition): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
insight | IInsightDefinition | insight to test |
Returns:
boolean
true if at least one measure or attribute, false if none