![]() |
ChartY()








Public Function |
Declared in: NiGraph.h |
Declaration
void ChartY( const CNiVector& y, double xInc);
Description
Charts a vector of data.
Notes:
1. The first time you call this function on a CNiGraph that contains no plot data, the x value of the first item in the vector is zero. Subsequently, the x value of the first item in the vector is equal to the x value of the last point you charted plus the value of the DefaultXInc property.
2. This function is similar to the PlotY function, except that the previously plotted data is not deleted until the amount stored for each chart is greater than the CNiGraph.ChartLength property.
3. This function uses plots from the CNiGraph::Plots collection that are marked as multiplot. If there are not enough plots available, the function creates temporary plot objects that are deleted after this function executes.
4. See the CNiGraph overview for information about using date/time values.
Parameters
Y data to chart. The data is plotted either by row or by column, depending on the value of the DefaultPlotPerRow property.
Amount to increment x for each new point.