This documentation is archived and is not being maintained.

DataPoint::SetValueY Method

Sets the Y-value(s) of a single data point.

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

public:
void SetValueY(
	... array<Object^>^ yValue
)

Parameters

yValue
Type: array<System::Object>
The Y-value(s) of a DataPoint object in the collection. Formatted as one or more values separated by commas.

The SetValueY property is used to set the Y-value(s) of a data point at run time.

Only one Y-value per point is required for all chart types except for 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.

This property returns an array of double values when used to retrieve multiple Y-values.

Important noteImportant

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.

Refer to the following table for a complete listing of valid .NET Framework types that can be used for the object type parameter:

String

DateTime

Double

Decimal

Single

Int32

UInt32

Int64

UInt64

.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: