BCGControlBar Pro for MFC
virtual CBCGPChartSeries* CBCGPChartAdvancedFormula::Create ( CBCGPChartVisualObject pChart,
CString  strFormulaName,
CBCGPChartSeries pInputSeries,
CBCGPChartAxis pYAxis = NULL,
CBCGPChartAxis pXAxis = NULL 
)
virtual

Creates a formula.

Returns
A pointer to an output series.

This method creates an output series and displays it on the specified axes. The created series has BCGPChartLine category, but you can call CBCGPChartSeries::SetChartType to change its category to any other compatible category.

Call CBCGPChartSeries::GetFormula for any future references to the formula instance.

If you don't specify pYAxis and/or pXAxis, the output series will be displayed on primary axis/axes.

Parameters
pChartA pointer to a chart.
strFormulaNameSpecifies output series name (displayed in legend).
pInputSeriesA pointer to an input series, whose data should be used to generate an output series.
pYAxisA pointer to Y axis.
pXAxisA pointer to X axis.

Reimplemented in CBCGPChartAdvancedBandsFormula.