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

AxisScaling.AutoMin Property

Gets or sets a value indicating whether the minimum value of the numerical or date axis should be set automatically based on the worksheet data.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v20.2.Core.dll


bool AutoMin { get; set; }
Property AutoMin As Boolean

Property Value

Type Description

true, to calculate the minimum axis value automatically; otherwise, false.


Use the AutoMin and AxisScaling.AutoMax properties to control whether the minimum and maximum values of an axis should be calculated automatically.

If you wish to control the scale of the chart yourself, set the AutoMin and AxisScaling.AutoMax properties to false, and then use the AxisScaling.Min and AxisScaling.Max properties to specify the minimum and maximum axis values.


The example below demonstrates how to create a clustered column chart and specify the value axis scale. Set the AxisScaling.AutoMax and AxisScaling.AutoMin properties to false to indicate that maximum and minimum values of the axis will be set manually by using the AxisScaling.Max and AxisScaling.Min properties

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")

' Set the minimum and maximum values for the chart value axis.
Dim axis As Axis = chart.PrimaryAxes(1)
axis.Scaling.AutoMax = False
axis.Scaling.Max = 1
axis.Scaling.AutoMin = False
axis.Scaling.Min = 0

' Hide the legend.
chart.Legend.Visible = False
See Also