function
Source: index.ts ↗
insightSetBuckets()
Gets a new insight that ‘inherits’ all data from the provided insight but has different buckets.
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.