Xamarin.Android - Horizontal Scroll ONLY

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Chi Tee user
Newbie
Newbie
Posts: 1
Joined: Wed May 08, 2013 12:00 am

Xamarin.Android - Horizontal Scroll ONLY

Post by Chi Tee user » Fri May 31, 2013 8:10 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Xamarin.Android - Horizontal Scroll ONLY

Post by Narcís » Mon Jun 03, 2013 8:01 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply