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
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).
<dxc:ChartView>
<dxc:ChartView.AxisY>
<dxc:NumericAxisY GridAlignment="1" GridOffset="0.7"/>
</dxc:ChartView.AxisY>
</dxc:ChartView>
See Also