Skip to main content

NumericAxisY.GridOffset Property

Gets or sets the offset of the first major tickmark and gridline from the axis range’s minimum value. This is a bindable property.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts

Declaration

public double GridOffset { get; set; }

Property Value

Type Default Description
Double 0

The first major tickmark and gridline offset.

Remarks

The GridOffset property specifies the offset of first major tickmark and gridline from the Min value of the axis’s Range. To set the interval between major tickmarks and grid lines, use the GridAlignment property.

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