PRB: Cannot Have Secondary Y Axis with MSChart XY Scatterchart (230486)



The information in this article applies to:

  • Microsoft Visual Basic Professional Edition for Windows 5.0
  • Microsoft Visual Basic Professional Edition for Windows 6.0
  • Microsoft Visual Basic Enterprise Edition for Windows 5.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0

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.

MORE INFORMATION

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.


Modification Type:MajorLast Reviewed:1/11/2001
Keywords:kbCtrl kbprb KB230486