Page 1 of 1

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

Posted: Tue Aug 02, 2011 1:58 am
by 9529132
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.

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

Posted: Tue Aug 02, 2011 11:28 am
by yeray
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