Page 1 of 1

Floating vertical line with a description

Posted: Tue Sep 04, 2007 8:53 pm
by 9341477
Hi,

I have a TChart that is used to display trend history of various data. Bottom axis is a time axis, data are divided into multiple series. Now I also need to visualize certain events that occured during the history.

So, I need to be able to draw a vertical line at certain date/time across the whole chart and somewhere nearby that line (preferably above the chart so that it does not overlap the data series) should be a small multi-line description. There are multiple such event occurences throughout the trend history. There is also a requirement that when the chart gets either panned or zoomed, both the vertical line and the associated description should follow that movement.

My question is obvious. Can this be (easily) achieved with TeeChart?

Thanks in advance!

Posted: Tue Sep 04, 2007 11:02 pm
by 9047589
Hi, ibauer!
It's rather difficult to reach this page on steema web-site :(I found it long time ago) , but it has an example giving an idea about solving your task:
http://www.steema.com/support/Tutorials ... l_0013.htm

Posted: Wed Sep 05, 2007 7:52 am
by narcis
Hi ibauer,

Yesterday I made an example of scrolling and panning annotations set in a custom position. You can find it here.

To achieve what you request I'd recommend you to use ColorLine tools for the lines and Annotation or Rectangle tools for the text. Then you should have to set the position of those elements to something relative to the chart (series, axes, ...), as shown in the example.

Hope this helps!

Posted: Sun Oct 21, 2007 10:30 pm
by 9341477
Maybe a bit late, but let me thank to both of you for providing suggestions that led me on the right track!

Posted: Mon Oct 22, 2007 3:20 pm
by narcis
Hi Ivo,

Better late then never :wink:. Anyway, I'm glad to hear that helped!