BCGControlBar Pro for MFC
virtual void CBCGPChartSeries::SetRelatedAxis ( CBCGPChartAxis pAxis,
CBCGPChartSeries::AxisIndex  axisIndex 
)
virtual

Display a series on the specified axis.

This method establishes a relationship between a series and an axis.

If a pointer to X or Y axis (or both) is NULL, a series is not displayed on the diagram, but is still visible in the legend. If you need to hide a series, set CBCGPChartSeries::m_bVisible flag to FALSE.

This method can be used to display a series either on a custom axis, or on one of the secondary axes.

The following code displays a series on a secondary Y axis:

pChart->GetSeries(0)->SetRelatedAxis(pChart->GetChartAxis(BCGP_CHART_Y_SECONDARY_AXIS), CBCGPChartSeries::AI_Y);

Parameters
pAxisA pointer to an axis.
axisIndexSpecifies axis index.