A newer version of this page is available. Switch to the current version.

XYDiagram2D.EnableAxisXZooming Property

Specifies whether zooming is allowed for the diagram’s panes along their X-axes.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll


public bool EnableAxisXZooming { get; set; }

Property Value

Type Description

true to allow X-axis zooming; otherwise, false.


Use the EnableAxisXZooming property to specify whether it’s allowed to zoom the diagram‘s panes along their X-axes, both at design and runtime.


The EnableAxisXZooming property affects on the diagram’s zooming capability only on the WinForms platform. The ASP.NET WebForms Chart Control and MVC Chart Extension do not support this feature.

After you’ve specified the EnableAxisXZooming property, you can individually adjust the capability to zoom the X-axis of each pane, via its XYDiagramPaneBase.EnableAxisXZooming property. And, the default value of the XYDiagramPaneBase.EnableAxisXZooming property means that the actual setting for this pane is obtained from the EnableAxisXZooming property.

At runtime, you can get the actual status for a pane’s X-axis zooming via the read-only XYDiagramPaneBase.ActualEnableAxisXZooming property.


When the EnableAxisXZooming property is enabled, the XYDiagram2D.ZoomingOptions property becomes available, which allows you to choose ways in which zooming can be performed (via the mouse and / or keyboard or using spread or pinch gestures in your touchscreen device).

For the Y-axis, the similar XYDiagram2D.EnableAxisYZooming property is available.

To enable scrolling along the X-axis of the diagram’s panes, use the XYDiagram2D.EnableAxisXScrolling property.

For more information, refer to Zooming and Scrolling (2D XY-Charts).

See Also