[ShinobiCharts iOS] Limited date Range on xAxis with ability to scroll



I want to have a chart with a defined visible xAxis date range. The user should be able to scroll on the xAxis to see the other available data.

My chart data are in a range from two hours ago till now. And I want to show only the data beginning with 1 hour ago.
Then the user can scroll the chart to see the earlier data.

I got the chart into the view with all the data (iPhone, Portrait Mode, chart with full view width). And the chart shows the hole range of data.
I am using ShinobiCharts Version 2.6.0. That’s my starting point.

Now I want to limit the visible data so that the user must scroll to see the earlier data.

I tried to set the xAxis range with ‘setRangeWithMinimum:andMaximum’ without success.
My second Idea was to increase the default zoom level. Again without success.

Any help would be appreciated.



Having the same problem here too.

Love to get some advice here too. Thank you.


Hi suchasurge

Manage to do it for my chart.

I added the following.

SChartDateRange *testDate = [[SChartDateRangealloc]initWithDateMinimum:less6HoursDate andDateMaximum:[NSDatedate]];

    [xAxis setDefaultRange:testDate];

    xAxis.enableGesturePanning = YES;

    _chart.xAxis = xAxis;