Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AxisLabel Class

Stores axis label settings.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts

#Declaration

C#
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

See Also