FittingModelCollection AddForecastHoltWinters Method TIBCO Spotfire 6.0 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: 13.19.7018.3940 (13.19.7018.3940)
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;
See Also