Null point values

TeeChart for ActiveX, COM and ASP
Post Reply
Mike
Newbie
Newbie
Posts: 40
Joined: Wed Jan 28, 2004 5:00 am

Null point values

Post by Mike » Mon Nov 29, 2004 9:44 am

hello,

How can I use NULL values in line charts so that the NULL points are totally discarded, when drawing the lines from point to point?

I have several series having timestamped data. All series do not have data values for each timestamp, and these values should be ignored so that (in linechart) the lines should be drawn from point-to-point ONLY if there is a data point for that timestamp.

Thanks in advance.

Mike

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Dec 01, 2004 8:16 am

Hi Mike,
you can use the AddNull or AddNullXY methods to add the Null points to the Chart and then if you want to remove the spaces between the points you can do :

Code: Select all

For t = 0 To TChart1.Series(0).Count - 1
  If TChart1.Series(0).IsNull(t) Then
    TChart1.Series(0).Delete (t)
  End If
Next t

Post Reply