insightSetProperties()
Home > @gooddata/sdk-model > insightSetProperties
insightSetProperties() function
Gets a new insight that 'inherits' all data from the provided insight but has different properties.
Signature:
export declare function insightSetProperties<T extends IInsightDefinition>(insight: T, properties?: VisualizationProperties): T;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| insight | T | insight to work with | 
| properties | (Optional) new properties to have on the new insight | 
Returns:
T
always new instance
Remarks
New properties will be used in the new insight as-is, no merging with existing properties.