BCGSuite for MFC
CBCGPChartTrendFormula::CBCGPChartTrendFormula ( TrendLineType  type,
CBCGPChartSeries pSeries = NULL,
LPARAM  lParam = NULL 
)

Constructs a CBCGPChartTrendFormula object.

type can be one of the following enumerated values:

  • TLT_LINEAR - linear trend line
  • TLT_EXPONENTIAL - exponential trend line
  • TLT_LOGARITHMIC - logarithmic trend line
  • TLT_POLYNOMIAL - polynomial trend line
  • TLT_POWER - power trend line

    If pSeries is NULL use AddCoefficient() / SetCoefficients() to display a trend line of the specified type with custom coefficients.

If diagram does not display any series except the "formula" series, you need to either set trend line range using SetTrendRange(), or call CBCGPChartAxis::SetFixedDisplayRange.

Parameters
typeA Trend Line type.
pSeriesA pointer to an input series.
lParamUser defined data.