Hi, as explained in my previous post, I plot Measurements over Time using a TFastLineSeries. The Measurement (amplitude) is plotted on the Y axis and the Time is plotted on the X axis. The software I'm developing communicates with a hardware device and records information received from the hardware device which is then plotted onto the graph. However, this recording can be switched on and off by the user. Since I can determine when the recording was switched on and off I need to somehow stop plotting the seriesline when recording was switched off, and continue plotting when it is switched on. Is there a way this can be achieved using TChart?
Thx in advance for any advice!
Delphi 7
TeeChart Pro 7
Plotting broken lines
Hi,
you can use similar code like the one exposed in the TeeChart Pro Demo features project under :
All features -> Welcome ! -> Speed -> Fast Delete and Fast Pen
you can use similar code like the one exposed in the TeeChart Pro Demo features project under :
All features -> Welcome ! -> Speed -> Fast Delete and Fast Pen
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi.
Instead of deleting unwanted points, you could also change them to "null" points and create gaps in the line. This can be done on already added points (use SetNull method or set point Color to clnone) or even better, at the time when you're adding points. In this case all you must do is use AddNullXY method to add null point with x value between ending and starting recording time and y value equal to start or end (y) value.
Instead of deleting unwanted points, you could also change them to "null" points and create gaps in the line. This can be done on already added points (use SetNull method or set point Color to clnone) or even better, at the time when you're adding points. In this case all you must do is use AddNullXY method to add null point with x value between ending and starting recording time and y value equal to start or end (y) value.
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
Thanks for the help so far. The SetNull and AddNullXY methods were exactly what I was looking for. Unfortunately I ran into another problem. The SetNull and AddNullXY methods only works on TLineSeries and not on TFastLineSeries. I tried using TLineSeries before but because of the amount of data I have to display it simply is too slow to be usefull. The only thing left for me to do is to Add a point directly below the last known recording point at pos Y=0, then add a point below the continuation point at pos y=0 and finally add the continuation point itself. This will in effect cause a U shaped line to be drawn which might look weird but it's the only solution left I guess.
Is there a way for me to develop my own line series class which is inherited from TCustomSeries, impliments all the TFastLineSeries capability, but in addition add the Color property per point so I can set the Color of the point to clNone?
Is there a way for me to develop my own line series class which is inherited from TCustomSeries, impliments all the TFastLineSeries capability, but in addition add the Color property per point so I can set the Color of the point to clNone?