FittingModelCollection AddForecastHoltWinters Method TIBCO Spotfire 6.5 API Reference
Adds a Holt Winters forecast with default settings to the collection.

Namespace: Spotfire.Dxp.Application.Visuals.FittingModels
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 14.10.7525.5058 (14.10.7525.5058)
Syntax

public ForecastHoltWintersFittingModel AddForecastHoltWinters()

Return Value

Type: ForecastHoltWintersFittingModel
The newly added .
Examples

The following example shows how to add a ForecastHoltWintersFittingModel to a line chart and to configure it.
// Add forecast to the linechart 
var forecast = lineChart.FittingModels.AddForecastHoltWinters();

// Configure forecast
forecast.AutomaticFrequency = true;
forecast.UseSeasonal = true;
forecast.TimePointsAhead = 12;
forecast.IndividualFittingModes = IndividualFittingModes.Color |               
                                  IndividualFittingModes.Trellis;

// Change settings for curves
forecast.FittedCurve.Color = Color.Blue;
forecast.ForecastCurve.LineStyle = LineStyle.Double;
forecast.ConfidenceCurve.Visible = false;
Version Information

Supported in: 6.5, 6.0
See Also