fitType Property

The fitType property returns or sets the equation used by a fit. Use AddFit to add a fit. Returns a Long.

Syntax

object.fitType

object.fitType = fitType

 

Parameter Type Description
fitType Long required, grfFitTypes

 

Remarks

Use the fitType property to set the fit type to a predefined fit equation. Use the SetCustomFit method when setting the fit type to either grfCustomFit. The grfCustomFit value is only used by the AddFit method and will return an error if used with fitType.

Example 1

This example shows how to assign which of the standard fit equations will be used.

AutoFitPlot.fitType = grfLogFit

Example 2

This example shows how to return the fit equation that is used.

Debug.Print AutoFitPlot.fitType

 

Used by: AutoFitPlot object