Back to Devexpress

AxisLabel.Position Property

maui-devexpress-dot-maui-dot-charts-dot-axislabel-24e5df25.md

latest1.9 KB
Original Source

AxisLabel.Position Property

Gets or sets the position of axis labels. This is a bindable property.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public AxisLabelPosition Position { get; set; }

Property Value

TypeDefaultDescription
AxisLabelPositionOutside

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

|

Available values:

NameDescription
Inside

Axis labels are located inside the plot area.

| | Outside |

Axis labels are located outside the plot area.

|

Remarks

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

xaml
<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>

See Also

AxisLabel Class

AxisLabel Members

DevExpress.Maui.Charts Namespace