AxisRange.SideMarginsEnabled Property

Specifies whether a space should be left between the outermost series point and the diagram's edge.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v20.1.dll


public bool SideMarginsEnabled { get; set; }
Public Property SideMarginsEnabled As Boolean

Property Value

Type Description

true if the axis range is automatically widened; otherwise, false.


Use the SideMarginsEnabled property for an axis to automatically extend its range, so that indents are preserved on the both ends of the axis.


When using the Numerical scale type, it is possible to change side margins only for automatically calculated axis ranges.

The following table illustrates how the SideMarginsEnabled property works.

SideMarginsEnabled = false SideMarginsEnabled = true
Charts_SideMarginsEnables-False Charts- SideMarginsEnabled- True


The following example demonstrates how to change the AxisRange.SideMarginsEnabled property value.

    <dxc:AxisX2D Range="SideMarginsEnabled=False" />
See Also