CBCGPChartSeries* CBCGPChartVisualObject::CreateSeries | ( | const CString & | strName, |
const CBCGPColor & | color = CBCGPColor() , |
||
BCGPChartType | type = BCGP_CT_DEFAULT , |
||
BCGPChartCategory | category = BCGPChartDefault , |
||
int | nSeriesIndex = -1 |
||
) |
Creates a series and adds it to the internal array of series.
Call this method to create a series and automatically add it an internal array of series. If type and/or category are not specified (default), this method creates a series according to the default category and type that have been specified in SetChartType().
You can use this method if you need to display series of different categories on the same chart.
type can be one of the following enumerated values:
category can be one of the following enumerated values:
nSeriesIndex allows to display series in desired order. For example:
will display the line series first. If nSeriesIndex is -1 the series will be displayed in the same order as they have been created; otherwise you should ensure that an existing series located at this index is properly destroyed or relocated.
strName | Specifies series name. |
color | Specifies default series line color. Set empty color to use colors from the current visual theme. |
type | Specifies series type. |
category | Specifies series category. |
nSeriesIndex | Specifies series index. |