BCGControlBar Pro for MFC
int CBCGPChartVisualObject::AddChartData ( double  dblData,
int  nSeries = 0,
CBCGPChartData::ComponentIndex  ci = CBCGPChartData::CI_Y,
DWORD_PTR  dwUserData = 0,
BCGPChartFormatSeries pFormatDataPoint = NULL,
BCGPChartFormatSeries pFormatSeries = NULL 
)

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
dblDataA new data to be set at the sepecified component index.
nSeriesA zero-based series index.
ciSpecifies a component index.
dwUserDataUser-defined data to be associated with a new data point.
pFormatDataPointData point formatting options.
pFormatSeriesSeries formatting options.