IAverageFunction.IncludeNulls
IAverageFunction
property IncludeNulls: WordBool;
Type Library
TeeChartx
Description
The IncludeNulls property enables/disables the inclusion of NullValues in the calculation of the Average Function. The effect of this can be seen in the following example:
Example [Visual Basic]:
With TChart1
.AddSeries scLine
.AddSeries scLine
.AddSeries scLine
For i = 0 To 20
If i Mod 4 = 0 Then
.Series(0).AddNullXY i, 0, ""
Else
.Series(0).AddXY i, Rnd(i) * 100, "", clTeeColor
End If
Next i
.Series(1).SetFunction tfAverage
.Series(1).DataSource = "Series0"
.Series(1).FunctionType.asAverage.IncludeNulls = True
.Series(1).CheckDataSource
.Series(2).SetFunction tfAverage
.Series(2).DataSource = "Series0"
.Series(2).FunctionType.asAverage.IncludeNulls = False
.Series(2).CheckDataSource
End With