This documentation is archived and is not being maintained.

DataPoint::YValues Property

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

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

[BindableAttribute(true)]
[PersistenceModeAttribute(PersistenceMode::Attribute)]
public:
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

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: