Skip to main content
A newer version of this page is available. .

AxisBase.SideMargins Property

Specifies the distance between the outermost series point and the diagram edge, in axis units.

Namespace: DevExpress.WinUI.Charts

Assembly: DevExpress.WinUI.Charts.v22.1.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(0.5, Handler = "SideMarginsChanged")]
public double SideMargins { get; set; }

Property Value

Type Description
Double

A value that specifies side margins in axis units.

Remarks

The following images show a chart with different side margins values:

SideMargins = 0 SideMargins = 10
SideMargins=0 SideMargins=10

The following example removes horizontal offsets between the outermost series point and the diagram’s edge:

<Charts:CartesianChart.AxisX>
    <Charts:AxisX x:Name="axisX" SideMargins="0"/>
</Charts:CartesianChart.AxisX>
See Also