Floating vertical line with a description

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

Floating vertical line with a description

Post by ibauer » Tue Sep 04, 2007 8:53 pm

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!
Ivo Bauer [OZM Research]

xxxxxx
Advanced
Posts: 128
Joined: Tue Jun 19, 2007 12:00 am
Location: Russia
Contact:

Post by xxxxxx » Tue Sep 04, 2007 11:02 pm

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
Regards, Alexander
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009

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

Post by Narcís » Wed Sep 05, 2007 7:52 am

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!
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 » Sun Oct 21, 2007 10:30 pm

Maybe a bit late, but let me thank to both of you for providing suggestions that led me on the right track!
Ivo Bauer [OZM Research]

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

Post by Narcís » Mon Oct 22, 2007 3:20 pm

Hi Ivo,

Better late then never :wink:. Anyway, I'm glad to hear that helped!
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

Post Reply