BCGSuite for MFC
CBCGPChartSeries* CBCGPChartSeries::SetChartType ( BCGPChartCategory  chartCategory,
BCGPChartType  chartType = BCGP_CT_SIMPLE,
BOOL  bAdjustLayout = FALSE,
BOOL  bRedraw = FALSE 
)

Sets new series category and type.

This method can be used to convert a series from one category to another and / or set its new type (stacked, ranged etc).

Currently some series (like Stock series) can't be converted to other series.

chartCategory can be one of the following enumerated values:

  • BCGPChartLine,
  • BCGPChartPie,
  • BCGPChartPie3D,
  • BCGPChartPyramid,
  • BCGPChartPyramid3D,
  • BCGPChartFunnel,
  • BCGPChartFunnel3D,
  • BCGPChartColumn,
  • BCGPChartBar,
  • BCGPChartHistogram,
  • BCGPChartArea,
  • BCGPChartStock,
  • BCGPChartBubble,
  • BCGPChartLongData,
  • BCGPChartHistoricalLine,
  • BCGPChartPolar,
  • BCGPChartDoughnut,
  • BCGPChartDoughnut3D,
  • BCGPChartTorus3D,
  • BCGPChartTernary,
  • BCGPChartColumn3D,
  • BCGPChartBar3D,
  • BCGPChartLine3D,
  • BCGPChartArea3D,
  • BCGPChartSurface3D,
  • BCGPChartDoughnutNested,

chartType can be one of the following values:

  • BCGP_CT_SIMPLE
  • BCGP_CT_STACKED
  • BCGP_CT_100STACKED
  • BCGP_CT_RANGE
Parameters
chartCategoryNew chart category.
chartTypeNew chart type.
bAdjustLayoutInvalidates the chart layout.
bRedrawRedraws the chart.