hawkins Posted March 21, 2010 Report Share Posted March 21, 2010 Hi! I'm trying to create a combination bar and scatter plot. Everything works OK, except that the bars float to the right, and aren't lined up over the X-axis labels: Any suggestions as to what I might be doing wrong? Here Quote Link to comment Share on other sites More sharing options...
RandyJ Posted March 23, 2010 Report Share Posted March 23, 2010 Hi, I think the problem is related to the fact that you are creating an X/Y chart (using XValues). Please note that XY charts do not have a categorical axis. Both the X and Y axis become a numerical axis and, therefore, you can set any axes values such as minimum, maximum, step, logbase and other settings related to a numerical axis. The problem is that due to its nature, X/Y charts do not support non-x/y galleries such as bar charts, gantt, etc (as these galleries use a categorical X axis). You can use X-Values only in some galleries such as LINES, AREA, CURVE, STEP, SCATTER, SURFACE, CONTOUR (which support a numerical X axis). In the sample posted, you are attempting to create an X/Y chart by passing XValues, this means the X Axis will be a numerical Axis and for this reason you will not be able to use bars (as Bar is a non-x/y gallery). When this gallery is used in an X/Y chart, an unexpected behavior may be experienced. Regards, Randy Jimenez Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.