Skip to main content

DXChart.AxisXNavigationMode Property

Gets or sets navigation actions available for the X-axis.

Namespace: DevExpress.Xamarin.iOS.Charts

Assembly: DevExpress.Xamarin.iOS.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

public virtual DXAxisNavigationMode AxisXNavigationMode { get; set; }

Property Value

Type Description
DXAxisNavigationMode

Specifies navigation actions available for the X-axis.

Available values:

Name Description
None

User cannot change an axis range.

Scrolling

Users can scroll through the axis.

ScrollingAndZooming

Users can scroll and zoom through the axis.

Remarks

This property supports the following values:

Value

Example

Description

None

User cannot change an axis range.

Scrolling

Users can scroll through the axis.

ScrollingAndZooming

Users can scroll and zoom through the axis.

Example

The Cartesian Chart allows end-users to navigate on the chart coordinate space using swipe and pinch gestures:

Scrolling and zooming example

The following code example demonstrates how to enable zooming and scrolling through the X-axis and disable navigation through the Y axis, as the image above demonstrates:

this.chart.AxisXNavigationMode = DXAxisNavigationMode.ScrollingAndZooming;
this.chart.AxisYNavigationMode = DXAxisNavigationMode.None;

The code above uses the following methods:

Method

Description

DXChart.AxisXNavigationMode

Gets or sets navigation actions available for the X-axis.

DXChart.AxisYNavigationMode

Gets or sets navigation actions available for the Y-axis.

DXAxisNavigationMode

Lists values that specify navigation actions available for an axis.

See Also