AxisLabel Class

Stores axis label settings.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

Declaration

public class AxisLabel :
    AxisLabelBase

Related API Members

The following members accept/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
Xamarin.Forms.BindableObject
See Also