Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / PointSeries Class / UseZValues Property
Example


In This Topic
    UseZValues Property (PointSeries)
    In This Topic
    Specifies whether custom Z positions should be used.
    Syntax
    'Declaration
     
    <CategoryAttribute("Options")>
    <DescriptionAttribute("Specifies whether custom Z positions should be used.")>
    <DefaultValueAttribute(False)>
    Public Property UseZValues As Boolean
    'Usage
     
    Dim instance As PointSeries
    Dim value As Boolean
     
    instance.UseZValues = value
     
    value = instance.UseZValues
    [Category("Options")]
    [Description("Specifies whether custom Z positions should be used.")]
    [DefaultValue(false)]
    public bool UseZValues {get; set;}
    Remarks
    If this property is set to true the points use the coordinates contained in the ZValues data series as their depth coordinate. Note that you must manually switch the scale mode of the depth axis to some of the value scale modes.
    Example
    The following code displays a XYZ scatter point.
    Dim point As PointSeries =  Chart.Series.Add(SeriesType.Point) 
    point.UseXValues = True
    point.UseZValues = True
    Chart.Axis(StandardAxis.PrimaryX).ScaleMode = AxisScaleMode.Numeric
    Chart.Axis(StandardAxis.Depth).ScaleMode = AxisScaleMode.Numeric
    point.AddPoint(12, 23, 4)
    point.AddPoint(25, 34, 13)
    ...
    PointSeries point = Chart.Series.Add(SeriesType.Point);
    point.UseXValues = true;
    point.UseZValues = true;
    Chart.Axis(StandardAxis.PrimaryX).ScaleMode = AxisScaleMode.Numeric;
    Chart.Axis(StandardAxis.Depth).ScaleMode = AxisScaleMode.Numeric;
    point.AddPoint(12, 23, 4);
    point.AddPoint(25, 34, 13);
    ...
    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