control.Region(n).AnySeries([n]).DataLastIndex

Type:Long
Purpose:Set/Get the index of the last data point within the data block of a series.
Default:-
Accessible:Runtime
Remarks:

With this property and property .DataFirstIndex scrolling through huge data amount is very easy. Instead of repeatedly adding the portion of data you want to show, you can add all data at once, then setting the range of the data to be shown while your user scrolls through the chart.
NOTE:

  • If this property and property .DataFirstIndex are -1, all data points will be excluded, if both properties are 0, a previously defined range gets anulled, i.e. all data points will be included again.
  • With RMC_BARGROUP, RMC_FLOATINGBAR and RMC_FLOATINGBARGROUP DataFirstindex must always be smaller than DataLastIndex.
  • The following chart types don't support this property at all: RMC_BARSTACKED, RMC_BARSTACKED100, RMC_AREA_STACKED, RMC_AREA_STACKED100, RMC_LINE_STACKED, RMC_LINE_STACKED100.
Example:RMChartX1.AddRegion
' Add a LineSeries to the region:
RMChartX1.Region(1).AddLineSeries
' Add huge data amount from a file ...
RMChartX1.Region(1).LineSeries(1).SetDataFile "dax00-06d.csv", "-1,0", "7", ","
' ... but show only the first 50 data points:
RMChartX1.Region(1).LineSeries(1).DataFirstIndex = 1
RMChartX1.Region(1).LineSeries(1).DataLastIndex = 50
..
..
.. ' Later, show the next 50 data points:
RMChartX1.Region(1).LineSeries(1).DataFirstIndex = 51
RMChartX1.Region(1).LineSeries(1).DataLastIndex = 100