Skip to main content

NumericAxisY.GridAlignment Property

Gets or sets the distance between axis major tickmarks and gridlines.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

public double GridAlignment { get; set; }

Property Value

Type Description
Double

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