Break in the line for FastLine chart

TeeChart for ActiveX, COM and ASP
Post Reply
KingDesigns
Newbie
Newbie
Posts: 7
Joined: Thu Oct 07, 2004 4:00 am
Location: Leesburg, Georgia
Contact:

Break in the line for FastLine chart

Post by KingDesigns » Wed Mar 18, 2009 5:33 pm

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?

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Thu Mar 19, 2009 8:28 am

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

KingDesigns
Newbie
Newbie
Posts: 7
Joined: Thu Oct 07, 2004 4:00 am
Location: Leesburg, Georgia
Contact:

Break in the line for FastLine chart

Post by KingDesigns » Thu Mar 19, 2009 12:49 pm

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?

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Fri Mar 20, 2009 8:13 am

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply