hello,
like in topic - how could i get range of visible values on axes after zoom ?
thanks in advance
zooming, how to get range of visible values
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi guzial,
You could do something like this:
You could do something like this:
Code: Select all
procedure TForm1.Chart1Zoom(Sender: TObject);
begin
ShowVisibleIndexes;
end;
procedure TForm1.ShowVisibleIndexes;
begin
Chart1.Draw;
Chart1.Title.Text.Clear;
Chart1.Title.Text.Add(IntToStr(Series1.FirstDisplayedIndex));
Chart1.Title.Text.Add(IntToStr(Series1.FirstDisplayedIndex + Series1.VisibleCount-1));
end;
procedure TForm1.Chart1UndoZoom(Sender: TObject);
begin
ShowVisibleIndexes;
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |