| 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.
|
| 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 |