Nevron .NET Vision
Nevron.Chart Namespace / NXYScatterSeries Class / UseXValues Property
Example


In This Topic
    UseXValues Property (NXYScatterSeries)
    In This Topic
    Specifies whether the series should use custom X positions for the data points.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Options")>
    <System.ComponentModel.DescriptionAttribute("Specifies whether the series should use custom X positions for the data points.")>
    <System.Xml.Serialization.XmlAttributeAttribute()>
    <System.ComponentModel.DefaultValueAttribute(False)>
    Public Property UseXValues As System.Boolean
    'Usage
     
    
    Dim instance As NXYScatterSeries
    Dim value As System.Boolean
     
    instance.UseXValues = value
     
    value = instance.UseXValues
    [System.ComponentModel.Category("Options")]
    [System.ComponentModel.Description("Specifies whether the series should use custom X positions for the data points.")]
    [System.Xml.Serialization.XmlAttribute()]
    [System.ComponentModel.DefaultValue(false)]
    public System.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 NPointSeries = CType(chart.Series.Add(SeriesType.Point), NPointSeries)
    chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = New NNumericScaleConfigurator()
    point.UseXValues = True
    point.Add(12, 34)
    point.Add(32, 12)
    point.Add(12, 34)
    ...
    NPointSeries point = (NPointSeries)chart.Series.Add(SeriesType.Point);
    chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = new NNumericScaleConfigurator();
    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