Max-Time vs MaxPointsPerPage

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Jim
Newbie
Newbie
Posts: 8
Joined: Fri Nov 15, 2002 12:00 am

Max-Time vs MaxPointsPerPage

Post by Jim » Sat Dec 06, 2003 5:50 pm

Hi,

Have a chart with dates on horizontal axis and several line series.

Have ability for user to select "how long", or number of months, to display on chart. Not all line series hold points covering the entire time/date period. Thus MaxPointsPerPage doesn't help. i.e. the date period with series all having points/data is shorter than others because it has more points. :)

Thanks

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Sun Dec 07, 2003 8:14 pm

Hi.

Instead of using MaxPointsPerPage, try manually setting axis "range" by specifying it's minimum and maximum value. For example, if you want to show only last hour worth of data:

Code: Select all

With Chart1.Axes.Bottom do
begin
  Automatic := False;
  SetMinMax(AllSeriesMaxXValue, AllSeriesMaxXValue - 1.0/24);
end;
PS : I posted a reply to similar problem in this forum couple of days ago.
Marjan Slatinek,
http://www.steema.com

Post Reply