Xceed Chart for WinForms v4.4 Documentation
UseXValues Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > XYScatterSeries Class : UseXValues Property
Specifies whether the series should use custom X positions for the data points.
Syntax
'Declaration
 
<DefaultValueAttribute()>
<CategoryAttribute("Options")>
<DescriptionAttribute("Specifies whether the series should use custom X positions for the data points.")>
Public Property UseXValues As Boolean
'Usage
 
Dim instance As XYScatterSeries
Dim value As Boolean
 
instance.UseXValues = value
 
value = instance.UseXValues
[DefaultValue()]
[Category("Options")]
[Description("Specifies whether the series should use custom X positions for the data points.")]
public bool UseXValues {get; set;}
Remarks
You must manually change the mode of the horizontal axis on which the series is displayed in order to properly scale it.
Example
The following code displays a XY scatter point.
Dim point As PointSeries =  Chart.Series.Add(SeriesType.Point) 
Chart.Axis(StandardAxis.PrimaryX).ScaleMode = AxisScaleMode.Numeric
point.UseXValues = True
point.Add(12, 34)
point.Add(32, 12)
point.Add(12, 34)
...
PointSeries point = Chart.Series.Add(SeriesType.Point);
Chart.Axis(StandardAxis.PrimaryX).ScaleMode = AxisScaleMode.Numeric;
point.UseXValues = true;
point.Add(12, 34);
point.Add(32, 12);
point.Add(12, 34);
...
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

XYScatterSeries Class
XYScatterSeries Members