BCGSuite for MFC
int CBCGPChartVisualObject::AddChartDataYY1 ( const CString &  strCategoryName,
double  dblY,
double  dblY1,
int  nSeries = 0,
BCGPChartFormatSeries pFormatDataPoint = NULL,
DWORD_PTR  dwUserData = 0 
)

Adds a new data point with specified Y and Y1 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()).

Use this method for charts that require Y and Y1 values (for example, range charts and Bubble chart).

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