CNiGraph::ChartY

CNi

Class
CNiGraph::
ChartY()
Base ClassesData ItemsConstructorsDestructorsFunctionsGo to hierarchy chart    Prev page: ChartYNext page: ChartY    
Public Function Declared in:
NiGraph.h

'Declaration' icon -- Shortcut to top of page. Declaration

void ChartY(
    const CNiVector& y,
    double xInc);

'Description' icon -- Shortcut to top of page. 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.

Shortcut to top of page. Parameters

const CNiVector& y

Y data to chart. The data is plotted either by row or by column, depending on the value of the DefaultPlotPerRow property.

double xInc

Amount to increment x for each new point.

'See Also' icon -- Shortcut to top of page. See Also