Series.YValueType 属性

定义

获取或设置序列所存储的数据点中的 Y 值数据类型。Gets or sets the type of Y-value data in the data points stored by a series.

public:
 property System::Web::UI::DataVisualization::Charting::ChartValueType YValueType { System::Web::UI::DataVisualization::Charting::ChartValueType get(); void set(System::Web::UI::DataVisualization::Charting::ChartValueType value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.SeriesYValueTypeConverter))]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public System.Web.UI.DataVisualization.Charting.ChartValueType YValueType { get; set; }
member this.YValueType : System.Web.UI.DataVisualization.Charting.ChartValueType with get, set
Public Property YValueType As ChartValueType

属性值

一个 ChartValueType 枚举值,决定系列所存储的 Y 值数据类型。A ChartValueType enumeration value that determines the type of Y-value data stored by the series. 默认值为 AutoThe default value is Auto.

属性

注解

YValueType属性确定序列存储的数据的类型。The YValueType property determines the type of data stored by the series. 通常将此属性的值设置为Auto或。 DateTimeThe value of this property is normally set to either Auto or DateTime.

IntervalType轴标签、刻度线和网格类中找到的属性决定了间隔类型。The IntervalType property found in axis label, tick mark, and grid classes determines the interval type.

此属性还可用于确定与 Y 值绑定的数据类型。This property can also be used to determine the data type to which the Y-values are bound.

可以将日期表达式绘制为数据点的值, 但这种情况很少发生。It is possible to plot date expressions as the values of data points, though this is rarely done. 如果将此属性设置为DateTime, 则 Y 值随后可以DateTime作为值Double(而不是) 输入。If you set this property to DateTime, the Y-value can then entered as a DateTime value, and not as a Double. 日期和时间值由作为Double值 .NET Framework 存储。Date and time values are internally stored by .NET Framework as Double values.

适用于