Page 1 of 1

Xamarin.Android - Horizontal Scroll ONLY

Posted: Fri May 31, 2013 8:10 pm
by 17365812
hello,

I am using Teechart for Xamarin.Android. I would like to allow users to scroll horizontally ONLY through 1 week of data on a timeline. I don't want pinch/zoom or vertical scroll. i can't seem to find the proper settings to have these options work correctly.

Has anyone gotten this working properly?

What I have done so far is to load the Chart in a parent view and then manually handle the horizontal scroll on the chart by using the scroll events in the parent view and setting Min/Max on the chart when user scrolls. I would really prefer to use the built-in scrollability which is much smoother, and I presume better on memory.

Thanks in advance for your time

Re: Xamarin.Android - Horizontal Scroll ONLY

Posted: Mon Jun 03, 2013 8:01 am
by narcis
Hello,

For now you can not set horizontal scroll only. You can disable zoom and scroll using:

Code: Select all

      tChart1.Zoom.Style = Steema.TeeChart.ZoomStyles.Classic;
This is not fully implemented as it should perfrom traditional TeeChart desktop zoom and scroll, horizontal scroll included. For now, it does nothing on this field but offers some advantages on rendering performance. Alternatively you can use:

Code: Select all

      tChart1.Zoom.Style = Steema.TeeChart.ZoomStyles.None;
which is intended to use and optimized for real-time applications.

You can also scroll a chart horizontally by modifying bottom axis range using its SetMinMax method upon your desired action.