BCGSuite for MFC
int CBCGPChartVisualObject::AddSeries ( CBCGPChartSeries pSeries,
BCGPChartFormatSeries pFormatSeries = NULL,
int  nIndex = -1 
)

Adds a new series to the internal list of series.

Use this method to add a series that has been allocated with operator new.

nIndex can be -1 to add a series at the end; otherwise you should ensure that an existing series located at this index is properly destroyed or relocated.

Parameters
pSeriesA pointer to a series.
pFormatSeriesSeries formatting options.
nIndexSpecifies series index.