Syncfusion.SfChart.XForms
Members  Example 
Syncfusion.SfChart.XForms Namespace : ChartZoomPanBehavior Class

ChartZoomPanBehavior Class

This class is used to enable zooming feature in SfChart. An instance of this class need to be added to SfChart.ChartBehaviors collection.
Object Model
ChartZoomPanBehavior ClassSfChart Class
Syntax
public class ChartZoomPanBehavior : ChartBehavior, Xamarin.Forms.IElementController  
Remarks
Zooming and panning operations can be initiated and can be restored backed to the original position by performing zoom out operation or by enabling EnableDoubleTap property. Chart can also be zoomed, without adding ChartZoomPanBehavior, by specifying following properties ChartAxis.ZoomFactor and ChartAxis.ZoomPosition for the ChartAxis.By specifying zooming mode using ZoomMode property, zooming operation can be performed along horizontal or along vertical or along both directions in a Chart.
Example
SfChart chart = new SfChart();
ChartZoomPanBehavior zoomPan = new ChartZoomPanBehavior ();
chart.ChartBehaviors.Add(zoomPan);
Inheritance Hierarchy

System.Object
   Xamarin.Forms.BindableObject
      Xamarin.Forms.Element
         Syncfusion.SfChart.XForms.ChartBehavior
            Syncfusion.SfChart.XForms.ChartZoomPanBehavior

AssemblyVersion

Syncfusion.SfChart.XForms: 17.3451.0.26

See Also