Back to Devexpress

NumericAxisY.GridAlignment Property

maui-devexpress-dot-maui-dot-charts-dot-numericaxisy-9e7412f9.md

latest1.6 KB
Original Source

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

csharp
public double GridAlignment { get; set; }

Property Value

TypeDefaultDescription
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).

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

See Also

NumericAxisY Class

NumericAxisY Members

DevExpress.Maui.Charts Namespace