BCGSuite for MFC
void CBCGPChartSeries::SetDataLabelContent ( BCGPChartDataLabelOptions::LabelContent  content,
int  nDataPointIndex = -1 
)

Sets data label content.

Call this method to set data label content (for all data points in a series, or individually). content can be one of the following enumerated values:

  • LC_SERIES_NAME
  • LC_CATEGORY_NAME
  • LC_VALUE
  • LC_PERCENTAGE
  • LC_X_VALUE
  • LC_BUBBLE_SIZE
  • LC_BUBBLE_VALUES = LC_VALUE | LC_X_VALUE | LC_BUBBLE_SIZE,
  • LC_ALL_BUBBLE_VALUES = LC_SERIES_NAME | LC_VALUE | LC_X_VALUE | LC_BUBBLE_SIZE,
  • LC_VALUE_PERCENTAGE = LC_VALUE | LC_PERCENTAGE,
  • LC_SERIES_VALUES = LC_SERIES_NAME | LC_VALUE | LC_X_VALUE,
  • LC_SERIES_CATEGORY_VALUE = LC_SERIES_NAME | LC_CATEGORY_NAME | LC_VALUE,
  • LC_PIE_NAME_PERCENTAGE = LC_CATEGORY_NAME | LC_PERCENTAGE
Parameters
contentSpecifies the content.
nDataPointIndexSpecifies a data point index. Use -1 to set the option for a series.