Page 1 of 1

Scrolling Chart by Finding a value

Posted: Wed Sep 20, 2006 7:25 pm
by 9337074
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?

Posted: Thu Sep 21, 2006 8:02 am
by narcis
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.