ChartY Method
Syntax
CWGraph.ChartY yData [, xInc = 1] [, bChartPerRow = True]
Purpose
Charts Y data on one or more plots relative to the index of the data.
Remarks
The xInc parameter determines the X spacing between points passed to a plot. The X value of the first point is the last point's X value + xInc. If no data has been plotted, the first X value is 0. This method is similar to the PlotY method, except that the previously plotted data is not deleted until the amount stored for each chart is greater than the CWGraph.ChartLength property specifies.
Use the Plot and Chart methods on a CWPlot object if you want to modify a single plot without affecting the other plots. Use the Plot and Chart methods on the CWGraph object if you want to modify all existing plots.
Parameters
yData As Variant
The data to chart. yData can be a scalar value adding one point to the first plot, a one-dimensional array adding n points to the first plot or one point to n plots, or a two-dimensional array adding multiple points to multiple plots.
xInc As Variant
[Optional] The amount to increment X for points in each plot. The value can be positive or negative.
This parameter has a default value of 1.
bChartPerRow As Variant
[Optional] If True and the yData array is one-dimensional, all the values in the yData array are appended to a single plot; if False and the yData array is one-dimensional, each value in the yData array is appended to its own plot. If True and the yData array is two-dimensional, each row of the yData array is appended to its own plot; if False and the yData array is two-dimensional, each column of the yData array is appended to its own plot.
This parameter has a default value of True.