Help!

Excel chart draws line outside Y axis

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Charting RSS
Next:  How do I save new colour schemes for graphs in th..  
Author Message
pc
External


Since: Jul 22, 2006
Posts: 2



PostPosted: Sat Jul 22, 2006 9:27 pm    Post subject: Excel chart draws line outside Y axis
Archived from groups: microsoft>public>excel>charting (more info?)

Hello,

I have an Excel chart that appears to have a bug, as it draws a second
line outside of the Y axis. The line is upright, but slightly shorter
and to the left of the axis. If I hover over the line, the caption
read "Value Axis", the same as it does over the real value axis.
Between the two lines, the caption reads "Chart Area", as it normally
would outside of the plot area.

If I change some of the data to be plotted, the line may disappear or
even change its weighting from thin to thick. The line always
reappears or returns to the same weighting if I reinstate the data,
although I can see no pattern in this. If I zoom to 200% or 400%, the
line is still there on the screen, although it does not print.

The chart is part of a workbook that is distributed to 100+ people in
the office. The line appears randomly on some charts but not on
others. We use either Excel 2002 or Excel 2003 at work, and I have
checked this on Excel 2000 at home, always with the same results.

Can anybody throw some light on this. Many thanks in anticipation.

Regards,

Philip Clarke
Back to top
pc
External


Since: Jul 22, 2006
Posts: 2



PostPosted: Sun Jul 23, 2006 7:51 pm    Post subject: Re: Excel chart draws line outside Y axis [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello again,

I have partially solved my problem, in that I can now see how the line
comes to be drawn outside of the Y axis. I still maintain that this is
a bug, so I will report here my findings in case they help somebody
else at some time in the future.

First of all, I discovered that the line also appeared on the small
graphic on the "Series" tab of the "Source Data" dialog box, but this
still didn't help to solve the problem.

My chart included error bars (set at -100%), and this gave me the first
clue when I noticed that the unwanted line was the same height as one
of the error bars. So I then formatted the error bars in different
colours, and the line to the left of the value axis changed each time
to the same colour. Clearly, this was the source of the problem.
However, I noted that whilst the error bar was appearing here, the line
itself did not plot beyond the axis, and neither did the line marker.

What I didn't mention earlier, was that my spreadsheet includes some
dynamic ranges, and I use these to control the period of time that is
plotted on the chart. As the dynamic range changed, the points with
error bars would move to the limits of the time-frame in question. In
my case, I was reducing the time-frame by bringing forward the end date
one month at a time and, in doing this, one point with an error bar
would move up against the right axis. Then, having reached the end,
instead of disappearing, it reappeared on the other side of the chart,
just outside of the left margin! On experimenting, I found that by
changing the start date, error bars could also be moved to the left,
and then off the plot area in a similar fashion.

As a work-around to this bug, I amended my macro to change the value of
the plot to 'zero' as points moved beyond either the left or right
axes. In effect, I guess that although the points still exist, they
are plotting at 'zero' height and, therefore, they are no longer
apparent on the screen.

I trust that this helps somebody else in the future.

Regards,

Philip Clarke
Back to top
Tushar Mehta
External


Since: Nov 16, 2003
Posts: 1607



PostPosted: Mon Jul 24, 2006 12:36 am    Post subject: Re: Excel chart draws line outside Y axis [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

That is indeed a strange finding. Thanks for sharing your analysis. I
imagine it will help someone else -- as long as they search the google
archive of the XL newsgroups. {grin}

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
pclarke@mace.co.uk says...
> Hello again,
>
> I have partially solved my problem, in that I can now see how the line
> comes to be drawn outside of the Y axis. I still maintain that this is
> a bug, so I will report here my findings in case they help somebody
> else at some time in the future.
>
{snip}
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Charting All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum