![]() |
ChartXY()








Public Function |
Declared in: NiPlot.h |
Declaration
void ChartXY( const CNiMatrix& xy, bool xInFirstRow);
Description
Charts a matrix of data as an X-Y plot.
Notes:
1. This function is similar to the PlotXY function, except that the previously plotted data is not deleted until the amount stored for each chart is greater than the CNiGraph.ChartLength property.
2. Use the Plot and Chart functions on a CNiPlot object if you want to modify a single plot without affecting the other plots. Use the Plot and Chart functions on the CNiGraph object if you want to modify all existing plots.
3. See the CNiPlot overview for information about using date/time values.
Parameters
X-Y data to plot.
Note: If xInFirstRow is true, the matrix must contain exactly two rows. If xInFirstRow is false, the matrix must contain exactly two columns.
If true, the first row of the matrix contains the X data and the second row contains the Y data. If false, the first column contains the X data and the second column contains the Y data.