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