ISeries.IsNan
ISeries
function IsNan(Value: Double): WordBool;
Type Library
TeeChartx
Description
Use IsNan if you expect to use 'non-clean' data that may contain Nans (Not a Number) or Infinite values. By Boolean checking for these values you can avoid trying to add them to a Chart Series.
Note: We recommend you use VB's With, VC++'s CSeries declaration as pointer to Series, or equivalent to avoid multiple recreates of the ISeries interface if this method is used with large datasets. Large gains may be made in performance. This holds true for maximising all use of With.
Example [Visual Basic]
With TChart1.Series(0)
For i = 0 To Numdata - 1
If .IsNan(Mydata(i)) = False Then
.AddXY i, Mydata(i), "", clTeeColor
Else
.AddNullXY i, 0, ""
End If
Next i
End With