newDimension()
Home > @gooddata/sdk-model > newDimension
newDimension() function
Creates new single-dimensional specification where the dimension will have the provided set of identifiers.
Signature:
export declare function newDimension(items?: DimensionItem[], totals?: ITotal[]): IDimension;
Parameters
Parameter | Type | Description |
---|---|---|
items | DimensionItem[] | (Optional) allows for mix of item identifiers, attributes and total definitions to have in the new dimension |
totals | ITotal[] | (Optional) additional totals to add to the dimension |
Returns:
single dimension