Scrolling Chart by Finding a value
Scrolling Chart by Finding a value
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?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |