A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Column chart - data labels problem



 
 
Thread Tools Display Modes
  #1  
Old February 26th, 2010, 11:51 AM posted to microsoft.public.excel.charting
alanbr
external usenet poster
 
Posts: 3
Default Column chart - data labels problem

I'm developing a chart for a client who has very specific
requirements. The data is of the following type of info:

Q1 2009 Q2 2009 Q3 2009 Q4 2009 YTD 2009
Alpha 3.3% 53.3% 18.8% 9.5% 105.8%
Bravo -0.2% 12.2% 19.7% -22.5% 3.9%
Charlie 106.6% 125.6% 2.3% -1.5% 368.4%
Delta -8.3% 1.4% 0.9% 0.8% -8.1%

I need to lay out the chart with the Y-axis being the % and the X-axis
being the Quarters, etc.

So far so good - I can do that. But the client wants data labels
showing the values immediately *above* each column (regardless of
whether the column is above or below the x-axis) - I have no problems
with the positive info but how do I show the negative info (eg -8.3%)
as a column *below* the x-axis with the data label (showing -8.3%)
*above* the x-axis?

Any help will be gratefully received.
  #2  
Old February 26th, 2010, 01:32 PM posted to microsoft.public.excel.charting
alanbr
external usenet poster
 
Posts: 3
Default Column chart - data labels problem

Hi Andy

First off, thanks so much for replying so quickly!
Secondly, I did what you said and it worked up to a point - the
problem being that
the secondary axis has a different scale to the primary axis.
I only realised this after I deleted the secondary axis and finished
all the steps.
This chart (or rather the source data) is going to be populated from a
database via VB and then
sucked into a Word report.

How can I (via macros if necessary) ensure that the secondary axis and
primary axis are the same scale?

Thirdly, I clicked on the Download link on your reply, thinking it
might help even more but got blocked 'cos
of permissions.

Thanks very much for your help so far.

Regards
Alan
  #3  
Old February 26th, 2010, 01:58 PM posted to microsoft.public.excel.charting
Andy Pope
external usenet poster
 
Posts: 2,088
Default Column chart - data labels problem

Hi,

Yes you probably need to be a member of CodeCage to see the attachment.

For me deleting the secondary vertical axis causes the series on the
secondary axis to use the primary axis scaling.

To make the secondary Y axis match the primary Y axis the simplest thing
is to add another dummy series to the secondary axis. This only needs 2
values, the MIN and MAX values from the source data. Change the chart
type to line instead of column. Format the line to have no marker or
line formatting.

Cheers
Andy

On 26/02/2010 13:32, alanbr wrote:
Hi Andy

First off, thanks so much for replying so quickly!
Secondly, I did what you said and it worked up to a point - the
problem being that
the secondary axis has a different scale to the primary axis.
I only realised this after I deleted the secondary axis and finished
all the steps.
This chart (or rather the source data) is going to be populated from a
database via VB and then
sucked into a Word report.

How can I (via macros if necessary) ensure that the secondary axis and
primary axis are the same scale?

Thirdly, I clicked on the Download link on your reply, thinking it
might help even more but got blocked 'cos
of permissions.

Thanks very much for your help so far.

Regards
Alan


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #4  
Old February 26th, 2010, 02:23 PM posted to microsoft.public.excel.charting
alanbr
external usenet poster
 
Posts: 3
Default Column chart - data labels problem

Hi Andy

That worked a real treat!! Thanks so much.

Regards
Alan
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.