How to display discrete/noncontiguous data in series?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
ibauer
Newbie
Newbie
Posts: 35
Joined: Thu Mar 31, 2005 5:00 am
Location: Czech Republic

How to display discrete/noncontiguous data in series?

Post by ibauer » Wed May 04, 2005 8:26 pm

Good evening!

I need to visualize a trend history of some process conditions in my system (using line series or similar). Bottom axis is intended to display TDateTime values (XValues) while left axis represents the actual value of a specific process condition (YValues) for the corresponding TDateTime.

When my application is running, it appends the new (current) values of all interesting process conditions to the log file in a regular time interval, so I can say that the data points contained in the log file that are used for visualization are equidistant.

The things get little complicated when my application is turned off (either intentionally by user or deliberately by a power outage) and launched again after some time. When this happens, the logging mechanism starts again to function but there is indeed a time gap between the last data point acquired just before the application was terminated and the first data point acquired right after the application has been restarted.

This time gap can easily be determined by subtracting every 2 consecutive xvalues and checking if the result is greater than regular sampling interval. What makes me pull my hair is that I don't know how to tell TeeChart to not draw the line between those 2 data points that surrounds the big time gap. Does anybody have any clue how to do it?

Thanks in advance!
Ivo

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu May 05, 2005 8:22 am

Hi Ivo,
This time gap can easily be determined by subtracting every 2 consecutive xvalues and checking if the result is greater than regular sampling interval. What makes me pull my hair is that I don't know how to tell TeeChart to not draw the line between those 2 data points that surrounds the big time gap. Does anybody have any clue how to do it?


You could use AddNull method to add null values for the gap values.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

ibauer
Newbie
Newbie
Posts: 35
Joined: Thu Mar 31, 2005 5:00 am
Location: Czech Republic

Post by ibauer » Thu May 05, 2005 11:50 am

Hi, Narcís!
narcis wrote:You could use AddNull method to add null values for the gap values.
Thanks a lot. Adding a single null point between the two gap boundary points using AddNullXY did the trick! I supposed that this must be quite simple to accomplish with TeeChart. :D

Best regards,
Ivo

Post Reply