BCGControlBar Pro for MFC
int CBCGPChartVisualObject::AddChartData ( const CString &  strCategoryName,
double  dblY,
int  nSeries = 0,
BCGPChartFormatSeries pFormatDataPoint = NULL,
DWORD_PTR  dwUserData = 0 
)

Adds data to a series.

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()).

Parameters
strCategoryNameSpecifies a category name.
dblYSpecifies Y value.
nSeriesA zero-based series index.
pFormatDataPointData point formatting options.
dwUserDataUser-defined data to be associated with a new data point.