Multiple Page Charts !!

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Satish
Newbie
Newbie
Posts: 37
Joined: Fri Mar 04, 2005 5:00 am

Multiple Page Charts !!

Post by Satish » Sat Mar 26, 2005 1:08 am

I wish to load 260 days of data into my series but wish to draw a chart with 200 days of data on one page. Is there a way to display 60 days data on page 1 and last 200 days data on page 2.

The last page needs to be have the latest data. The code I tried displays first 200 days on page 1 and next 60 days on page 2.

Will appreciate suggestions to implement the above.


Satish

Satish
Newbie
Newbie
Posts: 37
Joined: Fri Mar 04, 2005 5:00 am

Post by Satish » Tue Mar 29, 2005 12:56 pm

Any ideas ?

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

Post by Narcís » Tue Mar 29, 2005 3:24 pm

Hi Satish,

The behaviour you say that works for you is how chart paging works. To get something similar to what you request you should make your irregular pages using Chart1.BottomAxis.SetMinMax as:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Series1.FillSampleValues(260);

  Chart1.BottomAxis.SetMinMax(0,60);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  Chart1.BottomAxis.SetMinMax(Chart1.BottomAxis.Maximum,Chart1.BottomAxis.Maximum+200);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  Chart1.BottomAxis.SetMinMax(0,60);
end;
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

Satish
Newbie
Newbie
Posts: 37
Joined: Fri Mar 04, 2005 5:00 am

Post by Satish » Thu Mar 31, 2005 6:09 pm

Narcis,

This did not work for me. My XAxis is date labels - I will pick out the relevant code and take your advice again.

Satish

Post Reply