firstForMeasure()
Home > @gooddata/sdk-ui > IDataSeriesCollection > firstForMeasure
IDataSeriesCollection.firstForMeasure() method
Returns first-found data series for the provided measure.
Signature:
firstForMeasure(localIdOrMeasure: string | IMeasure): IDataSeries;
Parameters
Parameter | Type | Description |
---|---|---|
localIdOrMeasure | string | IMeasure | local id of measure or measure object to get local id from |
Returns:
data series
Exceptions
error if no data series or no data series from the provided measure
Remarks
This is a 'get-or-die' method and will throw in case data series from the provided measure is not located.