MinYValue Property

Use this property to obtain the current minimum y-value, of a specific y-axis, displayed on the graph.  The value returned is of type Double.

[Visual Basic]
ReadOnly Property MinYValue(YAxisNumber As Integer) As Double
[C#]
double XYChartNETCtl.get_MinYValue(int YAxisNumber)
[C++]
double get_MinYValue(int)

Parameters

YAxisNumber
The y-axis index to obtain the current minimum value of.  Valid values are 0..(NumYScales - 1).

Remarks

This property can be used to obtain the current minimum y-value displayed on the graph after a zoom-in has occurred.

Example

XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.  The following code is invoked after a zoom-in has occurred.

[Visual Basic]
Dim idx As Integer
Dim tmpMin As Double
Dim tmpMax As Double

For idx = 0 To XYChartNETCtl1.NumYScales - 1
   tmpMin = XYChartNETCtl1.MinYValue(idx)  'Get the current min value for the specified y-axis
   tmpMax = XYChartNETCtl1.MaxYValue(idx)  'Get the current max value for the specified y-axis
Next idx

[C#]
double tmpMin;
double tmpMax;

tmpMin = XYChartNETCtl1.get_MinYValue(1);  //Get the current min value for y-axis 1
tmpMax = XYChartNETCtl1.get_MaxYValue(1);  //Get the current max value for y-axis 1

[C++]
double tmpMin;
double tmpMax;

tmpMin = XYChartNETCtl1->get_MinYValue(0);  //Get the current min value for y-axis 0
tmpMax = XYChartNETCtl1->get_MaxYValue(0);  //Get the current max value for y-axis 0

See Also

Properties | MaxYValue | MinXValue | MaxXValue