Back to Devexpress

AxisDisplayPositionAbsolute Class

maui-devexpress-dot-maui-dot-charts-8e152d63.md

latest2.8 KB
Original Source

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

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

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

Implements

IElementController

INotifyPropertyChanged

Inheritance

System.Object BindableObject Element ChartElementBase ChartElement AxisDisplayPositionBase AxisDisplayPositionAbsolute

Extension Methods

Yield<AxisDisplayPositionAbsolute>()

YieldIfNotNull<AxisDisplayPositionAbsolute>()

See Also

AxisDisplayPositionAbsolute Members

DevExpress.Maui.Charts Namespace