Page 1 of 1

How to control the number of records in the chart ?

Posted: Wed Feb 13, 2008 4:33 am
by 9243843
Hi,

I am using TeeChart to display a database record. As database is quite big, I only want 100 records can be charted at once, then use key to shift the chart (scroll). How to do it ?

It seems to me there are two questions here,

(1) How to ensure only 100 records are indexed by the chart ? that is for the first time,
HorizAxis.Minimum =0;
HorizAxis.Maximum =100;

(2) Once the chart scroll, then the
HorizAxis.Minimum =0 + step;
HorizAxis.Maximum =100 + step;
Step is the shift increment or decrement.

Can you please point me ? thanks

Daniel

Posted: Wed Feb 13, 2008 11:50 am
by narcis
Hi Daniel,

Using bottom axis SetMinMax method for that is an option. The other would be using TeeChart's automatic paging feature and TChartPageNavigator for changing pages. You'll find an example of this at All Features\Welcome!\Components\Page Navigator in the new features demo, available at TeeChart's program group.