DataPoint::YValues Property

.NET Framework (current version)
 

Gets or sets the Y-value(s) of a data point.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public:
[BindableAttribute(true)]
property array<double>^ YValues {
	array<double>^ get();
	void set(array<double>^ value);
}

Property Value

Type: array<System::Double>^

An array of double values that represent the Y-value(s) of a data point.

The YValues property is used to set the Y-values of data points.

Only one Y-value per point is required for all chart types except bubble, candlestick and stock charts. These chart types require more than one Y-value because one data point consists of multiple values. For example, to plot one stock chart column, four values are required: high, low, open and close values.

The YValues property returns an array of double values when used to retrieve the Y-values.

Important   The YValuesPerPoint property determines the maximum number of Y-values that all data points in a Series can have. If you specify more than the allowable number of Y-values, an exception will be raised.

.NET Framework
Available since 4.0
Return to top
Show: