How to control the number of records in the chart ?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
nileiqi
Newbie
Newbie
Posts: 13
Joined: Fri Jan 12, 2007 12:00 am

How to control the number of records in the chart ?

Post by nileiqi » Wed Feb 13, 2008 4:33 am

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

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 Feb 13, 2008 11:50 am

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.
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