void CBCGPChartVisualObject::SetChartType | ( | BCGPChartCategory | category, |
BCGPChartType | type = BCGP_CT_SIMPLE , |
||
BOOL | bRedraw = TRUE , |
||
BOOL | bResetAxesDisplayRange = TRUE |
||
) |
Sets Chart category and type.
Call this method to set a new Chart category and / or type.
All series that are created indirectly using CreateSeries() or GetSeries(nIdx, TRUE) get the category and type you specify in category and type.
All series that have been created prior this call are recreated (if possible - for example, stock series can't be converted) with the new category and type.
category can be one of the following enumerated values:
type can be one of the following enumerated values:
It's recommended to call this method with the desired chart category once before you create the first series. If you need to place different series on the same diagram, construct the series directly (with operator new) and call AddSeries().
If you don't call SetChartType(), the default series is BCGPChartLine.
category | Specifies the new Chart category. |
type | Specifies the new chart type. |
bRedraw | TRUE - redraw the chart immediately. |
bResetAxesDisplayRange | TRUE - reset display range for all axes. |