Left axis maximum and minimum are lost when zooming

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bsonnino
Newbie
Newbie
Posts: 2
Joined: Mon Jan 12, 2004 5:00 am

Left axis maximum and minimum are lost when zooming

Post by bsonnino » Tue Mar 23, 2004 11:15 am

I've created a chart whith horizontal zooming. When I zoom, left axis
minimum and maximum are changed to arbitrary values. I can restore these
values in the OnZoom event, but this is different from version 6. Is it to
be so ?

Bruno

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

Post by Marjan » Wed Mar 31, 2004 7:25 pm

Hi, Bruno.

Yes, I'm getting the same results. I'm not 100% sure if this is as designed, but a solution is to reset axis scale in chart OnZoom event. Something like this:

Code: Select all

procedure TForm1.Chart1Zoom(Sender: TObject);
begin
  if Chart1.Zoom.Direction = tzdHorizontal then
    Chart1.Axes.Left.Automatic := True;
end;
Marjan Slatinek,
http://www.steema.com

bsonnino
Newbie
Newbie
Posts: 10
Joined: Tue Mar 23, 2004 5:00 am

Post by bsonnino » Wed Mar 31, 2004 8:50 pm

Marjan:

As I said, this can be restored in the OnZoom event, but this is different from version 6.
As I have many charts with different axis settings, I must create an OnZoom event for each chart, restoring the axis settings.

Bruno

SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

Post by SteveP » Thu Apr 01, 2004 2:41 pm

After doing Series1.FillSampleValues(1000), chart1.Axes.Left.Maximum is an integer value. After a Horizontal Zoom, it is a slightly larger floating value and chart1.Axes.Left.Minimum is 96.4% of chart1.Axes.Left.Maximum

Any idea why the Minimum property does not show up in Delphi's Code Completion as an available property for chart1.Axes.Left. ?

Post Reply