The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

AxisScaling.Min Property

Gets or sets the minimum value of the numerical or date axis. This may not be the same as the minimum value of the series associated with the axis.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

double Min { get; set; }
Property Min As Double
double Min { get; set; }
Property Min As Double

Property Value

Type Description
Double

A Double value that specifies the minimum value to display on the axis.

Property Value

Type Description
Double

A Double value that specifies the minimum value to display on the axis.

Remarks

Use the Min property to specify or obtain the minimum value shown on the numerical or date axis. Note that this property takes effect only when the AxisScaling.AutoMin property is set to false.

Note

The Min property will have no effect on the visual appearance of a chart displayed in the SpreadsheetControl, until you set the maximum value of the axis via the AxisScaling.Max property.

Examples

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