Redigera

Dela via


Series.XValueType Property

Definition

Gets or sets the value types plotted along the X-axis.

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

Property Value

A ChartValueType enumeration value that determines the type of X-value data stored by the series. The default value is Auto.

Attributes

Remarks

The XValueType property determines the type of data stored by the series.

Set this property to DateTime to allow the X-value to be entered as a DateTime value, and not as a Double. Date and time values are internally stored by .NET Framework as Double values. The same holds true for the ToPosition and FromPosition properties of CustomLabel objects.

The IntervalType property found in axis label, tick mark, and grid classes determines the interval type.

Note

To correctly apply a DateTime format to axis labels that are generated from data point X-values, using the Format property, this property must be set to DateTime.

This property can also be used to determine the data type to which the X-values are bound.

Applies to