Dundas Chart for ASP.NET
AddY(Double) Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > DataPointCollection Class > AddY Method : AddY(Double) Method


yValue

The Y-value of the DataPoint object added to the collection.


Y value of the data point.

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


Adds one data point with one Y value.

Syntax

Visual Basic (Declaration)  
Public Overloads Function AddY( _
   ByVal yValue As Double _
) As Integer
Visual Basic (Usage) Copy Code
Dim instance As DataPointCollection
Dim yValue As Double
Dim value As Integer
 
value = instance.AddY(yValue)
C#  
public int AddY( 
   double yValue
)

Parameters

yValue

The Y-value of the DataPoint object added to the collection.


Y value of the data point.

Return Value

Returns an integer that represents the index where the item was inserted into the data point 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.

Use the method definition that allows for an array of Y-values if your data points require more than one Y-value.

If your data points need an X-value (e.g. if you are creating non-scatter plots) use the AddXY method instead.

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

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.