This topic has not yet been rated - Rate this topic

Series.XValueType Property

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

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)
[PersistenceModeAttribute(PersistenceMode.Attribute)]
[BindableAttribute(true)]
public ChartValueType XValueType { get; set; }

Property Value

Type: System.Web.UI.DataVisualization.Charting.ChartValueType
A ChartValueType enumeration value that determines the type of X-value data stored by the series. The default value is Auto.

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.

NoteNote

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.

.NET Framework

Supported in: 4.5, 4

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.