| Charting Data > Entering and Modifying Chart Data > Setting the X and Y Data Arrays Using Point Values |
For charts that only use the X and Y-axes (XY-Plot, Bar, and so on), the PointData property can be a convenient shortcut. The PointData property of the ChartDataSeries object allows the entering of an array of PointF point values. This property is convenient for applications that use point data, but this array will only set the X and Y data arrays. This property cannot change the values in the data arrays for Y1, Y2, or Y3.
The following example builds a PointF array and loads it into a ChartDataSeries:
To write code in Visual Basic
To write code in C#