Page 1 of 1

Multiple Page Charts !!

Posted: Sat Mar 26, 2005 1:08 am
by 9236155
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

Posted: Tue Mar 29, 2005 12:56 pm
by 9236155
Any ideas ?

Posted: Tue Mar 29, 2005 3:24 pm
by narcis
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;

Posted: Thu Mar 31, 2005 6:09 pm
by 9236155
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