Page 1 of 1

Is it possible to realize a fastline mark?

Posted: Mon Jul 17, 2006 9:16 am
by 9529132
Hi,

I am using fastline to display real-time sampled data, and there are also some trigger signals that is manully controlled. So I would like to add some mark (a line or a triangle) in the chart to indicate where the trigger signals are fired as well as the data index when the trigger is fired. Is there any way to do it?

Thank you very much!
David

Posted: Mon Jul 17, 2006 9:25 am
by narcis
Hi David,

When adding data you could check if the trigger condition is given, then add a ColorLine to the chart and save the point index.

Posted: Mon Jul 17, 2006 9:34 am
by 9529132
Hi, Narcís,

Is the data keep coming in and the maximum of the bottom axix keep growing, will the colorline adjust its position automatically?

Thank you very much!
David

Posted: Mon Jul 17, 2006 9:38 am
by narcis
Hi David,

According this you'd better only store the point index where the ColorLine should be drawn and draw the lines in TeeChart's OnAfterDraw using positions relative to the series (i.e.: Series.XValues.Value(index)).

Posted: Mon Jul 17, 2006 9:49 am
by 9529132
I will have a try. Thank you very much, Narcís.

One more question, is it possible to dynamically define the number of points in a page when the fastline data keep coming in? I am thinking of showing the data between two trigger points as a page and then use the ChartPageNavigator to switch back and forth. Is it possible?

Thank you very much,
David

Posted: Mon Jul 17, 2006 9:52 am
by narcis
Hi David,

You can try doing that or you could also set bottom axis minimum and maximum values using SetMinMax method and to scroll the data you could increase/decrease those values accordingly.

Posted: Mon Jul 17, 2006 9:54 am
by 9529132
Thanks a lot, Narcís.