BCGSuite for MFC

Detailed Description

The CBCGPChartTheme class stores and manages chart and series colors.

Currently the library implements 20 color themes. You can set a predefined theme using CBCGPChartVisualObject::SetColors, which accepts either one of CBCGPChartTheme::ChartTheme enumerated values (see SetColors), or externally configured theme object.

The opacity of series colors should be specified using CBCGPChartTheme::SetOpacity. In this way a diagram can display transparent data point shapes without rebuilding the whole theme. However, the recommended way to change the opacity at the runtime is calling CBCGPChartVisualObject::SetThemeOpacity.

Note. The opacity of surface series should be changed using CBCGPChartSurfaceSeries::SetSurfaceOpacity.

Please refer BCGPChartExample (BCGPChartExample.cpp, methods SetupCustomColorTheme and InitSeriesColors) for more information about custom color themes.

BCGPChartExampleView.h, UpdateChartColorTheme method illustrates how to select a color theme for a chart.

+ Inheritance diagram for CBCGPChartTheme:

Public Member Functions

 CBCGPChartThemeConstructs a theme object.
 
 CBCGPChartThemeConstructs a theme object.
 
 GetOpacityReturns opacity of series fill colors.
 
 GetSeriesColorsReturns colors used to display series elements (shapes, data labels etc).
 
 GetThemeTypeReturns theme color scheme.
 
 IsVisualManagerThemeTells whether the chart has a Visual Manager-based color theme.
 
 SetOpacitySets theme opacity.
 
 SetThemeInitializes a theme object with predefined color set.
 
 SetVisualManagerThemeSpecifies whether the chart has a Visual Manager-based color theme.
 

Static Public Member Functions

 InitChartColorsGenerates a color scheme based on a set of basic colors.
 

Public Attributes

 m_dblColorChangeStepA value used to generate color shades for series.
 
 m_seriesColorsContains descriptions for series colors.