How to get the first and last data index in chart?

TeeChart for ActiveX, COM and ASP
Post Reply
David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

How to get the first and last data index in chart?

Post by David » Tue Aug 02, 2011 1:58 am

Hi, after zooming in the display, I would like to get the first and last data index shown in the chart. Would anyone please tell me how to do it with sample codes? Thanks.

Yeray
Site Admin
Site Admin
Posts: 9587
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: How to get the first and last data index in chart?

Post by Yeray » Tue Aug 02, 2011 11:28 am

Hi David,

Once you have the chart drawn, you can get the first and last indexes drawn in a series with:

Code: Select all

TChart1.Series(0).FirstValueIndex
TChart1.Series(0).LastValueIndex
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply