Page 1 of 1

Break in the line for FastLine chart

Posted: Wed Mar 18, 2009 5:33 pm
by 9524501
In some cases the data that I am working with on a FastLine chart will have NULL values for the limits in the database. I would like to have a break in the line when those values are NULL rather than a line drawing from the last non-null value to the next non-null value. Is there a setting that I can use to force that to happen?

Posted: Thu Mar 19, 2009 8:28 am
by yeray
Hi KingDesigns,

I think that you are looking for this:

Code: Select all

  TChart1.Series(0).asFastLine.IgnoreNulls = False
  TChart1.Series(0).asFastLine.TreatNulls = tnDontPaint
Otherwise, please, take a look at the demo at What's new ?/New in Series/Fast Line TreatNulls

Break in the line for FastLine chart

Posted: Thu Mar 19, 2009 12:49 pm
by 9524501
I am thinking that those properties are in the newer version. I am using version 7 and they are not available. Is there a way do this for v7?

Posted: Fri Mar 20, 2009 8:13 am
by yeray
Hi KingDesigns,

In v7 the property TreatNulls doesn't exist, but you can set IgnoreNulls as false and they shouldn't be displayed. As a simple example, this works fine for me with TeeChart ActiveX v7.0.1.4.

Code: Select all

Private Sub Form_Load()
  TChart1.Aspect.View3D = False

  TChart1.AddSeries scFastLine
  TChart1.Series(0).FillSampleValues 25
  
  TChart1.Series(0).SetNull 5
  
  TChart1.Series(0).asFastLine.IgnoreNulls = False
End Sub