.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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

Declaration

AxisOrientation Orientation { get; set; }
Property Orientation As AxisOrientation

Property Value

Type Description
AxisOrientation

An AxisOrientation enumeration value specifying the axis orientation.

Examples

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
See Also