BCGControlBar Pro for MFC
virtual BOOL CBCGPChartSeries::CanIncludeDataPointToLegend ( int  nDataPointIndex)
virtual

Tells whether a data point can be displayed in a legend.

Returns TRUE if a data point can be displayed in a legend. This condition is met if CBCGPChartSeries::m_bIncludeDataPointLabelsToLegend is TRUE and CBCGPChartDataPoint::m_bIncludeLabelToLegend is TRUE (default). If you wish to exclude some data points from legend, you need to loop over desired data points and and turn m_bIncludeLabelToLegend to FALSE.

Parameters
nDataPointIndexSpecifies data point index.