Skip to main content

AxisLabel Class

Stores axis label settings.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts

Declaration

public class AxisLabel :
    AxisLabelBase

The following members return AxisLabel objects:

Remarks

The AxisLabel class properties define axis label settings:

  • TextFormat - Specifies axis labels’ text format pattern.
  • Position - Specifies the position of axis labels.
  • Style - Provides access to axis label appearance settings (text color and size).
  • Visible - Allows you to show and hide axis labels.

To configure axis labels, assign an AxisLabel object with the specified properties to the axis’s Label property.

The following example shows how to modify axis labels of a date-time X-axis and numeric Y-axis:

<dxc:ChartView>
  <dxc:ChartView.AxisX>
    <dxc:DateTimeAxisX>
        <dxc:DateTimeAxisX.Label>
            <dxc:AxisLabel TextFormat="yyyy"/>
        </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

Inheritance

Object
BindableObject
Element
DevExpress.Maui.Core.Internal.DXElementBaseCore
See Also