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
Left axis maximum and minimum are lost when zooming
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:
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
http://www.steema.com
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. ?
Any idea why the Minimum property does not show up in Delphi's Code Completion as an available property for chart1.Axes.Left. ?