IDataSlice
Home > @gooddata/sdk-ui > IDataSlice
IDataSlice interface
Data slice is a sequence of data points that are all computed for a particular attribute elements and/or totals but different data series.
Signature:
export interface IDataSlice extends DataSliceDescriptorMethods, Iterable<DataPoint>
Extends: DataSliceDescriptorMethods, Iterable<DataPoint>
Remarks
In other words, data slice allows iterating over two dimension data view _across_ the dimension which contains the measures.
For convenience, the data slice is iterable over the Data Points. You can use it either in for-of loop or spread data slice into an array of DataPoints.
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
descriptor | readonly | DataSliceDescriptor | Descriptor of this data slice - what attributes or totals are the data points calculated for. |
id | readonly | DataSliceId | Unique identifier of the data slice. This can be used to directly access this data slice from data view. |
Methods
Method | Description |
---|---|
dataPoints() | |
rawData() |