Scrolling Chart by Finding a value

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
McMClark
Newbie
Newbie
Posts: 50
Joined: Thu Apr 15, 2004 4:00 am

Scrolling Chart by Finding a value

Post by McMClark » Wed Sep 20, 2006 7:25 pm

I using Delphi 2006 vcl. I have a dbChart that I have built from a query. The query shows numerical values on the Y axis and dates on the X axis. I am using a ChartPageNavigator and I am showing 10 points per page. I have a dblistbox that is populated with the list of dates from the same query as the chart. I want the DBChart to scroll to a particular date if the user selects a date from the list box that is not on the current page of the dbChart. How would I do that?

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

Post by Narcís » Thu Sep 21, 2006 8:02 am

Hi McMClark,

You could use Chart1.Axes.Bottom.SetMinMax(min,max) using minimum and maximum values above and below of the selected date in the dblistbox.
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