ChartYValue

ChartYValue class

Represents an Y value for a chart series.

public class ChartYValue

Properties

NameDescription
DateTimeValue { get; }Gets the stored datetime value.
DoubleValue { get; }Gets the stored numeric value.
TimeValue { get; }Gets the stored time value.
ValueType { get; }Gets the type of the Y value stored in the object.

Methods

NameDescription
static FromDateTime(DateTime)Creates a ChartYValue instance of the DateTime type.
static FromDouble(double)Creates a ChartYValue instance of the Double type.
static FromTimeSpan(TimeSpan)Creates a ChartYValue instance of the Time type.
override Equals(object)Gets a flag indicating whether the specified object is equal to the current Y value object.
override GetHashCode()Gets a hash code for the current Y value object.

Remarks

This class contains a number of static methods for creating an Y value of a particular type. The ValueType property allows you to determine the type of an existing Y value.

All non-null Y values of a chart series must be of the same ChartYValueType type.

See Also