Page 1 of 1

Null point values

Posted: Mon Nov 29, 2004 9:44 am
by 9080645
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

Posted: Wed Dec 01, 2004 8:16 am
by Pep
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