BCGControlBar Pro for MFC
int CBCGPChartVisualObject::AddChartDataYX ( double  dblY,
double  dblX,
int  nSeries = 0,
DWORD_PTR  dwUserData = 0,
BCGPChartFormatSeries pFormatDataPoint = NULL 

Adds a new data point with specified Y and X values.

This is a helper that simplifies adding data to a series specified by nSeries index.

If a series with nSeries index has not been created, this method creates a new series according to the current chart type (see SetChartType()).

This method should be used for non-categorized charts where Y and X components are specified.

dblYSpecifies Y value.
dblXSpecifies X value.
nSeriesZero-based series index.
dwUserDataUser-defined data to be associated with a new data point.
pFormatDataPointData point formatting options.