Dundas Chart for Windows Forms
AddY(Object[]) Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > DataPointCollection Class > AddY Method : AddY(Object[]) Method


yValue
The Y-value(s) of the DataPoint object added to the collection (one or more comma-separated values).
Comma separated Y values of the data point.

Adds a DataPoint object to the end of the collection, with the specified Y-value(s).


The Y-value(s) of the DataPoint object added to the collection (one or more comma-separated values).


The Y-value(s) of the DataPoint object added to the collection (one or more comma-separated values).


Adds one data point with one or more Y values.

Syntax

Visual Basic (Declaration)  
Public Overloads Function AddY( _
   ByVal ParamArray yValue() As Object _
) As Integer
Visual Basic (Usage) Copy Code
Dim instance As DataPointCollection
Dim yValue() As Object
Dim value As Integer
 
value = instance.AddY(yValue)
C#  
public int AddY( 
   params object[] yValue
)

Parameters

yValue
The Y-value(s) of the DataPoint object added to the collection (one or more comma-separated values).
Comma separated Y values of the data point.

Return Value

Returns an integer that represents the index where the item was inserted into the collection (0-based).


Index of newly added data point.

Remarks

This method adds one data point to the DataPointCollection object, always adding it to the end of the collection.

You must provide at least one (1) Y-value, otherwise an exception will be thrown. This method also checks the ChartType property of the Series object this data belongs to, and if too many Y-values are specified an exception will be thrown.

The X-value will always be set to zero (0), resulting in non-scatter plots. If you want your data points to use an X-value call the AddXY method instead.

For DateTime formatting to have an effect a value must be a DateTime object.

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

String

DateTime

Double

Decimal

Single

Int32

UInt32

Int64

UInt64

 

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.