IAddFunction
Hierarchy

Type Library
TeeChartx

Description
AddFunction may be added to your project by Chart Editor at design time or at runtime using code. Default period for the AddFunction when only 1 series is added to the function is 0 (One flat line representing the total of all data points of the input series). When 2 or more input series form the AddFunction series the default period is 1 axis point. Period is applicable only to the number of axis points, Period 1 = 1 axis point; period 2 = 2 axis points, etc..

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.