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

NumericAxisY.GridAlignment Property

Gets or sets the distance between axis major tickmarks and gridlines. This is a bindable property.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts

#Declaration

C#
public double GridAlignment { get; set; }

#Property Value

Type Default Description
Double -1

The interval between major grid lines and tickmarks.

#Remarks

Use the GridAlignment property to specify the step interval for y-axis labels, major tickmarks and gridlines.

#Example

This example shows how to configure a numeric y-axis scale and set the following parameters:

  • GridAlignment - the distance between major tickmarks and gridlines.
  • GridOffset - the offset of the first major tickmark and gridline from the axis range minimum value (0, in this example).

NumericAxisX.GridAlignment and NumericAxisY.GridOffset

<dxc:ChartView>
  <dxc:ChartView.AxisY>
      <dxc:NumericAxisY GridAlignment="1" GridOffset="0.7"/>
  </dxc:ChartView.AxisY>
</dxc:ChartView>
See Also