DataPoint.SetValueXY(Object, Object[]) Method

Definition

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

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

Parameters

xValue
Object

The X-value of the data point.

yValue
Object[]

A list of Y-values of the data point.

Remarks

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.

The following .NET types can be used for the object type parameter:

  • String
  • DateTime
  • Double
  • Decimal
  • Single
  • Int32
  • UInt32
  • Int64
  • UInt64

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1