How to display discrete/noncontiguous data in series?
Posted: 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
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