|
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);
pAxis | A pointer to an axis. |
axisIndex | Specifies axis index. |