Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4
Default Text above bars in chart

Hi,

Text that you usally have to the left of a bar chart, I'm trying to put
above each bar instead.
Visit the link below for a view of what I mean, and to get example numbers.
http://www.mikla.nu/chartbars/chartbars.htm

Best Regards
/Magnus


  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default Text above bars in chart

Hi,

The first problem you are going to have is that data labels will not
display that amount of text in a single line. Instead you will need to
add text boxes. So, unless you do it all manually, you will have to use
vba. I have some code for replacing Axis label which you maybe able to
adapt.
http://www.andypope.info/vba/Axislabel_textboxes.htm

If you add a row between each of your statements and stagger the rows
text and values it should work, with a little alteration to the position
of the textbox.

I would suggest using a 2d rather than 3d chart and trying to short the
statements.

Cheers
Andy

Magnus wrote:
Hi,

Text that you usally have to the left of a bar chart, I'm trying to put
above each bar instead.
Visit the link below for a view of what I mean, and to get example numbers.
http://www.mikla.nu/chartbars/chartbars.htm

Best Regards
/Magnus



--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4
Default Text above bars in chart

Thank you Andy,

Well, using vba feels a little bit overkill for the users that wants this
behavior.
Is there any way to get the text above each bar even if it will be wrapped
or truncated?

Regards Magnus

"Andy Pope" wrote in message
...
Hi,

The first problem you are going to have is that data labels will not
display that amount of text in a single line. Instead you will need to add
text boxes. So, unless you do it all manually, you will have to use vba. I
have some code for replacing Axis label which you maybe able to adapt.
http://www.andypope.info/vba/Axislabel_textboxes.htm

If you add a row between each of your statements and stagger the rows text
and values it should work, with a little alteration to the position of the
textbox.

I would suggest using a 2d rather than 3d chart and trying to short the
statements.

Cheers
Andy

Magnus wrote:
Hi,

Text that you usally have to the left of a bar chart, I'm trying to put
above each bar instead.
Visit the link below for a view of what I mean, and to get example
numbers.
http://www.mikla.nu/chartbars/chartbars.htm

Best Regards
/Magnus



--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info



  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default Text above bars in chart

Hi,

Yes, as I said stagger your data and labels along with a dummy series.
Assuming your test data was in the range A1:E11 what you need to do is
insert a row between each data row, expanding it to A1:E20.
No insert a cell above the axis labels so they appear in A3:A21.
Add a set of data to column F with the label Dummy. The value being 100%
and populate the cells on the same rows as the axis labels.
In order to stop Excel incorrectly guessing your data add a space to the
currently empty cell A2.
Now select the range A1:F21 and create stacked bar chart.
Apply data labels to the Dummy series display category name.
Format the series to have no fill or border.
Delete the category axis.

You should now have double spaced stack bars with text in the middle,
but as I said that amount of text will not look pretty in a data label.

Cheers
Andy

Magnus wrote:
Thank you Andy,

Well, using vba feels a little bit overkill for the users that wants this
behavior.
Is there any way to get the text above each bar even if it will be wrapped
or truncated?

Regards Magnus

"Andy Pope" wrote in message
...

Hi,

The first problem you are going to have is that data labels will not
display that amount of text in a single line. Instead you will need to add
text boxes. So, unless you do it all manually, you will have to use vba. I
have some code for replacing Axis label which you maybe able to adapt.
http://www.andypope.info/vba/Axislabel_textboxes.htm

If you add a row between each of your statements and stagger the rows text
and values it should work, with a little alteration to the position of the
textbox.

I would suggest using a 2d rather than 3d chart and trying to short the
statements.

Cheers
Andy

Magnus wrote:

Hi,

Text that you usally have to the left of a bar chart, I'm trying to put
above each bar instead.
Visit the link below for a view of what I mean, and to get example
numbers.
http://www.mikla.nu/chartbars/chartbars.htm

Best Regards
/Magnus



--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info





--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to enter text inside the bars on a bar chart in Excel? sheepdog Charts and Charting in Excel 3 April 4th 23 10:45 AM
how do I get more than 19 bars on a bar chart brian scotr Charts and Charting in Excel 1 September 24th 07 04:03 PM
Help with bars in bar chart Antney Charts and Charting in Excel 1 May 4th 07 05:28 PM
Up/down Bars - Line Chart ajvasel Charts and Charting in Excel 2 April 10th 07 09:28 PM
Bars in a chart??????? Gee Excel Worksheet Functions 0 July 15th 05 11:36 AM


All times are GMT +1. The time now is 05:06 PM.

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

About Us

"It's about Microsoft Excel"