Back to Devexpress

XYDiagram2D.AxisX Property

wpf-devexpress-dot-xpf-dot-charts-dot-xydiagram2d-960df1b8.md

latest3.4 KB
Original Source

XYDiagram2D.AxisX Property

Gets the X-axis.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public AxisX2D AxisX { get; set; }
vb
Public Property AxisX As AxisX2D

Property Value

TypeDescription
AxisX2D

An AxisX2D object which represents the X-axis.

|

Remarks

For more information on axes, see the Axes topic.

Example

The following example demonstrates how to change the AxisRange.SideMarginsEnabled property value.

View Example

xaml
<dxc:XYDiagram2D.AxisX>
    <dxc:AxisX2D Range="SideMarginsEnabled=False" />
</dxc:XYDiagram2D.AxisX>
xaml
<dxc:XYDiagram2D.AxisX>
     <dxc:AxisX2D >
         <dxc:AxisX2D.Range>
             <dxc:AxisRange SideMarginsEnabled="True" />
         </dxc:AxisX2D.Range>
     </dxc:AxisX2D>
 </dxc:XYDiagram2D.AxisX>

The following code snippets (auto-collected from DevExpress Examples) contain references to the AxisX property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-bind-a-range-control-to-a-chart-control/CS/GoldPrices/MainWindow.xaml#L39

xml
</dxc:XYDiagram2D.NavigationOptions>
<dxc:XYDiagram2D.AxisX>
    <dxc:AxisX2D x:Name="axisX">

wpf-charts-custom-draw-crosshair-cursor/CS/CrosshairCustomDraw/MainWindow.xaml#L17

xml
<dxc:XYDiagram2D>
    <dxc:XYDiagram2D.AxisX>
        <dxc:AxisX2D>

wpf-charts-create-real-time-chart/CS/RealtimeChartMVVM/MainWindow.xaml#L30

xml
</dxc:SplineSeries2D>
<dxc:XYDiagram2D.AxisX>
    <dxc:AxisX2D>

See Also

AxisY

XYDiagram2D Class

XYDiagram2D Members

DevExpress.Xpf.Charts Namespace