Page 1 of 1

Max-Time vs MaxPointsPerPage

Posted: Sat Dec 06, 2003 5:50 pm
by 8574024
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

Posted: Sun Dec 07, 2003 8:14 pm
by Marjan
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.