PC Review


Reply
Thread Tools Rate Thread

Column chart - data labels problem

 
 
alanbr
Guest
Posts: n/a
 
      26th Feb 2010
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.
 
Reply With Quote
 
 
 
 
alanbr
Guest
Posts: n/a
 
      26th Feb 2010
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
 
Reply With Quote
 
Andy Pope
Guest
Posts: n/a
 
      26th Feb 2010
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
 
Reply With Quote
 
alanbr
Guest
Posts: n/a
 
      26th Feb 2010
Hi Andy

That worked a real treat!! Thanks so much.

Regards
Alan
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Column BaR Chart and Data Labels Malik Microsoft Excel Charting 0 10th Jun 2008 04:28 AM
Incorrect Data Labels on Column Chart =?Utf-8?B?U00=?= Microsoft Excel Charting 0 7th Jun 2006 04:39 PM
chart labels from a column of data LRM Microsoft Excel Misc 1 7th Mar 2006 05:14 PM
center data labels on my column chart Dan Microsoft Excel Charting 1 4th Nov 2004 10:49 PM
Column Chart with data labels for percent and value? Kim Microsoft Excel Charting 1 11th Jul 2003 12:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:38 AM.