How to adjust y-axis min/max after scroll/zoom
-
- Newbie
- Posts: 5
- Joined: Tue Mar 04, 2014 12:00 am
How to adjust y-axis min/max after scroll/zoom
How are the y-axis min/max values automatically updated after a scroll/zoom. e.g. Setting LeftAxis.Automatic = True doesn't help.
Re: How to adjust y-axis min/max after scroll/zoom
Hello,
You can use the Chart OnZoom event to modify the axis scale as you want.
Ie:
You can use the Chart OnZoom event to modify the axis scale as you want.
Ie:
Code: Select all
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D:=false;
Chart1.AddSeries(TPointSeries).FillSampleValues();
end;
procedure TForm1.Chart1Zoom(Sender: TObject);
begin
with Chart1.Axes.Left do
SetMinMax(Minimum-5, Maximum+5);
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |