withForecast()
Home > @gooddata/sdk-backend-spi > IDataView > withForecast
IDataView.withForecast() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Adds forecast for this data view.
Signature:
withForecast(config?: IForecastConfig, result?: IForecastResult): IDataView;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| config | (Optional) forecast configuration | |
| result | (Optional) forecast result | 
Returns:
new data view with forecasting enabled