ISeries.SetFunction
ISeries
procedure SetFunction(AFunction: EFunctionType);
Type Library
TeeChartx
Description
AddFunction class Example
To set the period for AddFunction you should use the FunctionType property of Series
To define a function series by code you should first create a new series for the function. The series may be of any type.
Visual Basic
{ Set the function using the SetFunction method}.
TChart1.Series(0).SetFunction(tfAdd)
{You may then define the period for the function - here setting it to to 5}
TChart1.Series(0).FunctionType.Period = 5
To undefine (delete) a function defined for the series you should either delete the Series, make it inactive, or reassign the datasource to another Function or other.