AxisScaling.Orientation Property
Gets or sets the orientation of the axis on the chart.
Namespace: DevExpress.Spreadsheet.Charts
Assembly: DevExpress.Spreadsheet.v20.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
NuGet Packages: DevExpress.Spreadsheet.Core, DevExpress.WindowsDesktop.Spreadsheet.Core
Declaration
Property Value
Type | Description |
---|---|
AxisOrientation | An AxisOrientation enumeration value specifying the axis orientation. |
Example
The example below demonstrates how to create a chart and use the AxisScaling.Orientation
property to reverse the category axis orientation, so the values on the axis are displayed from maximum to minimum.
Dim worksheet As Worksheet = workbook.Worksheets("chartTask3")
workbook.Worksheets.ActiveWorksheet = worksheet
' Create a chart and specify its location.
Dim chart As Chart = worksheet.Charts.Add(ChartType.ColumnClustered, worksheet("B3:C5"))
chart.TopLeftCell = worksheet.Cells("H2")
chart.BottomRightCell = worksheet.Cells("N14")
' Reverse the category axis.
chart.PrimaryAxes(0).Scaling.Orientation = AxisOrientation.MaxMin
' Hide the legend.
chart.Legend.Visible = False
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Orientation 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.