BCGControlBar Pro for MFC
CBCGPChartData

Detailed Description

The CBCGPChartData class represents the Chart data as a single entity. It encapsulates an array of CBCGPChartValue values, which can be accessed by component index.

A "component index" is usually associated with an axis "type" that displays the part of Chart data. For example, X axis values are located at CBCGPChartData::CI_X index. Some chart types use more than one Y components (for example, bubble series, where Y1 component represents a bubble size). These components can be accessed with CBCGPChartData::CI_Y1..Y3 indexes.

If you need to calculate any custom component at runtime, you can place it at CBCGPChartData::CI_CUSTOM index.

CBCGPChartSeries provides a direct access to data point values with CBCGPChartSeries::GetDataPointValue method. For example, if you need to know Y value of 5-th data point, you can write the following code:

Copy
CBCGPChartValue valY = pSeries->GetDataPointValue(5, CBCGPChartData::CI_Y);
if (valY.IsEmpty)
{
return;
}

A CBCGPChartData object is encapsulated within CBCGPChartDataPoint and can be retrieved using CBCGPChartDataPoint::GetData method.

Public Member Functions

 CBCGPChartDataConstructs a CBCGPChartData object.
 
 CBCGPChartDataConstructs a CBCGPChartData object.
 
 CBCGPChartDataConstructs a CBCGPChartData object.
 
 CBCGPChartDataConstructs a CBCGPChartData object.
 
 CBCGPChartDataConstructs a CBCGPChartData object.
 
 CBCGPChartDataConstructs a CBCGPChartData object.
 
 CopyFromCopies values from the source CBCGPChartData object.
 
 GetComponentCountReturns a number of defined components.
 
 GetValueReturns a value at the specified index.
 
 IsEmptyTells whether chart data is empty, or not.
 
 SetEmptySets empty flag for all components.
 
 SetValueSets a value at the specified index.
 
 SetValuesSets array of values.