SetValueXY Method
Collapse the table of content
Expand the table of content

DataPoint.SetValueXY Method (Object, Object[])

.NET Framework (current version)
 

Sets the X-value and one or more Y-values of the data point.

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

public void SetValueXY(
	object xValue,
	params object[] yValue
)

Parameters

xValue
Type: System.Object

The X-value of the data point.

yValue
Type: System.Object[]

A list of Y-values of the data point.

Use the SetValueXY method to set the value(s) of a data point at run-time.

Note that if you set the X-value to a value other than zero (0), a scatter plot will be generated. For further details, see the Remarks section of the XValue property.

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
Available since 4.0
Return to top
Show:
© 2016 Microsoft