BCGControlBar Pro for MFC
virtual void CBCGPChartSeries::SetRelatedAxes ( CBCGPChartAxis pXAxis,
CBCGPChartAxis pYAxis,
CBCGPChartAxis pZAxis = NULL 
)
virtual

Display a series on the specified axes.

This method establishes a relationship between a series and axes. pZAxis can be NULL for 2D diagram.

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 on custom axes.

For example, the code below displays a series on a custom X axis and secondary Y axis:

Copy
pChart->GetSeries(0)->SetRelatedAxes(pXAxis->Split(50, 20), pChart->GetChartAxis(BCGP_CHART_Y_SECONDARY_AXIS));
Parameters
pXAxisA pointer to X axis.
pYAxisA pointer to Y axis.
pZAxisA pointer to Z axis.