Microsoft KB Archive/230486

= PRB: Cannot Have Secondary Y Axis with MSChart XY Scatterchart =

Article ID: 230486

Article Last Modified on 1/11/2001

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q230486



SYMPTOMS
If you create an XY scatterchart using MSChart and then attempt to specify a secondary Y axis, you are unable to do so.



CAUSE
This is a limitation of the MSChart control.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
The following steps demonstrate that no option is available for a secondary Y axis for an XY scatterchart.


 * 1) Start a new Standard EXE project in Visual Basic. Form1 is created by default.
 * 2) From the Properties menu, choose Components, then select either "Microsoft Chart Control (OLEDB)" or "Microsoft Chart Control" and then click OK.
 * 3) Place an instance of the MSChart control on Form1.
 * 4) Right-click the Chart control and choose Properties from the short-cut menu.
 * 5) Select the Series tab.
 * 6) Note that the check box labeled: "Plot on 2nd Y axis" is available at this point.
 * 7) Select the Chart tab.
 * 8) In the Chart Type list, select "X Y (Scatter)."
 * 9) Select the Series tab.

Notice the "Plot on 2nd Y axis" check box is now unavailable. It is dimmed because you have chosen an XY chart type. You are not allowed to specify a secondary axis for an XY chart - either manually or programmatically. There is no workaround for this limitation. If you must have a secondary Y axis with the MSChart control, you cannot use an XY chart. You must use a Line chart type.

Keywords: kbprb kbctrl KB230486

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.