We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Zooming and Panning in Xamarin.Android

How do you enable zooming and panning in Xamarin.Android? Android and Xamarin.Forms both have a ChartZoomPanBehaviour class, but this class seems to be missing in Xamarin.Android.

1 Reply

YP Yuvaraj Palanisamy Syncfusion Team October 26, 2015 11:15 AM UTC

Hi Cathryn,

Thanks for using Syncfusion products.

We have ChartZoomPanBehavior class in the Xamarin.Android. Also, please refer to the following code example to enable the chart zooming in the Xamarin.Android, Xamarin.Forms and Android platforms.


SfChart chart = new SfChart();
chart.Behaviors.Add(new ChartZoomPanBehavior());


SfChart chart = new SfChart();
chart.ChartBehaviors.Add(new ChartZoomPanBehavior());

Xamarin.Forms [XAML]
<chart:SfChart HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">


SfChart chart = new SfChart();
chart.getBehaviors.add(new ChartZoomPanBehavior());


Live Chat Icon For mobile
Up arrow icon