Skip to main content

AxisLabel.Position Property

Gets or sets the position of axis labels.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

public AxisLabelPosition Position { get; set; }

Property Value

Type Description
AxisLabelPosition

The AxisLabelPosition enumeration value that specifies the position of axis labels.

Available values:

Name Description
Inside

Axis labels are located inside the plot area.

AxisPosition.Far

Outside

Axis labels are located outside the plot area.

AxisPosition.Far

Remarks

Use the Position property to specify whether axis labels should be displayed inside or outside the plot area.

<dxc:ChartView>
  <dxc:ChartView.AxisX>
    <dxc:DateTimeAxisX>
        <dxc:DateTimeAxisX.Label>
            <dxc:AxisLabel TextFormat="yyyy" Position="Outside"/>
        </dxc:DateTimeAxisX.Label>
    </dxc:DateTimeAxisX>
  </dxc:ChartView.AxisX>
  <dxc:ChartView.AxisY>
      <dxc:NumericAxisY>
          <dxc:NumericAxisY.Label>
            <dxc:AxisLabel TextFormat="$#K" Position="Inside"/>
          </dxc:NumericAxisY.Label>
      </dxc:NumericAxisY>
  </dxc:ChartView.AxisY>
</dxc:ChartView>

Axis Label

See Also