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