ChartXY Method

Measurement Studio User Interface

ChartXY Method

Syntax

CWPlot.ChartXY xyData [, bXInFirstRow = True]

Purpose

Charts a two-dimensional array of data as an XY chart. This method is similar to the PlotXY method, except that the system does not delete the previously plotted data until the amount stored is greater than the CWGraph.ChartLength property specifies.

Remarks

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

xyData As Variant

Two-dimensional data array with exactly two rows or two columns to chart.

bXInFirstRow As Variant

[Optional] If True, the first row of the array contains the X data and the second row of the array contains a plot of Y data. If False, the first column of the array contains the X data and the second column of the array contains a plot of Y data.

This parameter has a default value of True.

Example

'Chart the first row data as X data
'and the second row as Y data
CWGraph1.Plots.Item(4).ChartXY xyData, True

See Also

PlotXY

CWGraph.ChartLength