wpf-devexpress-dot-xpf-dot-charts-dot-xydiagram2d-960df1b8.md
Gets the X-axis.
Namespace : DevExpress.Xpf.Charts
Assembly : DevExpress.Xpf.Charts.v25.2.dll
NuGet Package : DevExpress.Wpf.Charts
public AxisX2D AxisX { get; set; }
Public Property AxisX As AxisX2D
| Type | Description |
|---|---|
| AxisX2D |
An AxisX2D object which represents the X-axis.
|
For more information on axes, see the Axes topic.
The following example demonstrates how to change the AxisRange.SideMarginsEnabled property value.
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D Range="SideMarginsEnabled=False" />
</dxc:XYDiagram2D.AxisX>
<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
</dxc:XYDiagram2D.NavigationOptions>
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D x:Name="axisX">
wpf-charts-custom-draw-crosshair-cursor/CS/CrosshairCustomDraw/MainWindow.xaml#L17
<dxc:XYDiagram2D>
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D>
wpf-charts-create-real-time-chart/CS/RealtimeChartMVVM/MainWindow.xaml#L30
</dxc:SplineSeries2D>
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D>
See Also