Range based on count


I have a chart with a fairly large number of numeric (y axis) values with a date (on x axis).

I would like to have the axis scale for the first 100 values, but then subsequently when adding more than the hundred values, they would be hidden (but still visible by scrolling).
I am not sure if this is considered a range, but if so, I am not sure how I can create a range based on a “count” i.e. in my case 100 values, versus the first and last date of the 100th value.

Any advice is appriciated,

Thanks, Paul

SChartDateTimeAxis *xAxis = [[SChartDateTimeAxis alloc] init];
    _chart.xAxis = xAxis;
    SChartNumberAxis *yAxis = [[SChartNumberAxis alloc] init];
    _chart.yAxis = yAxis;


OK - managed to resolve this by using the code below. It seems to keep my latest 100 data points in the visible area.

- (void)sChartDidFinishLoadingData:(ShinobiChart *)chart
    if ([_labelPoints count] > 100){
        [_chart.xAxis setRangeWithMinimum:[_labelPoints objectAtIndex:[_labelPoints count] -3] andMaximum:[_labelPoints objectAtIndex:[_labelPoints count] - 100] withAnimation:NO ];