Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AxisDisplayPositionAbsolute Class

Anchors an axis to the specified point of the chart diagram.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts

#Declaration

C#
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).

DevExpress MAUI Charts - AxisDisplayPosition - Absolute

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

#Inheritance

See Also