AxisDisplayPositionAbsolute Class
Anchors an axis to the specified point of the chart diagram.
Namespace: DevExpress.XamarinForms.Charts
Assembly: DevExpress.XamarinForms.Charts.dll
NuGet Package: DevExpress.XamarinForms.Charts
Declaration
public class AxisDisplayPositionAbsolute :
AxisDisplayPositionBase
Remarks
Assign the AxisDisplayPositionAbsolute object to the DisplayPosition property to fix the axis at the specified point of the chart diagram. In this case, the axis does not change its position when a user scrolls the chart in a direction perpendicular to the axis.
To specify the point to which the axis should be anchored, set the AxisDisplayPositionAbsolute.Value property to a double number from 0 to 1 (0 and 1 correspond to the edges of the chart diagram).
<dxc:ChartView.AxisX>
<dxc:NumericAxisX>
<dxc:NumericAxisX.DisplayPosition>
<dxc:AxisDisplayPositionAbsolute Value="0.5"/>
</dxc:NumericAxisX.DisplayPosition>
<!-- Other settings of the axis. -->
</dxc:NumericAxisX >
</dxc:ChartView.AxisX>
You can also anchor an axis to the specified value of the other (relative) axis. To do this, set the axis’ DisplayPosition property to the AxisDisplayPositionRelative object.