Chart for .NET > User's Guide > Chart Types > Vector > Vector 
Vector charts display arrows in 2D or 3D space. A vector data item is defined by two points (begin  end) and is represented by a single arrow. An arrowhead is placed at the end point to indicate the vector direction. The following figures show a 2D and a 3D vector field created with the vector series:
Figure 1.
Figure 2.
Vector series are represented by the NVectorSeries type. An instance of this type must be added to the series collection of a Cartesian chart.
C# 
Copy Code


// obtain a reference to the Cartesian chart that is created by default NCartesianChart chart = (NCartesianChart)chartControl.Charts[0]; // add a vector series to it NVectorSeries vector = (NVectorSeries)chart.Series.Add(SeriesType.Vector); 
Visual Basic 
Copy Code


' obtain a reference to the Cartesian chart that is created by default Dim chart As NCartesianChart = chartControl.Charts(0) ' add a vector series to it Dim vector As NVectorSeries = chart.Series.Add(SeriesType.Vector) 
Once the vector series is created you can add some data in it. Vector series use the following data series:
Values data series  contains the Y values of the begin points
XValues data series  contains the X values of the begin points
ZValues data series  contains the Z values of the begin points
Y2Values data series  contains the Y values of the end points
X2Values data series  contains the X values of the end points
Z2Values data series  contains the Z values of the end points
You can either manipulate directly these data series, or use the data point interface to add data. The NRangeDataPoint class provides several constructors that can be very helpful when you add vector data points. Please refer to the Working with Data Points topic for more information.
The width and height of an arrowhead are relative to the vector length, so that shorter vectors can have smaller arrowheads and longer vectors can have larger arrowheads. The sizes are controlled through the ArrowheadWidthFactor and ArrowheadHeightFactor properties. The MinArrowHeadSize and MaxArrowHeadSize properties can be used to set minimum and maximum sizes in NLength format.