ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Bar Chart Axis Labels - un Word Wrap (https://www.excelbanter.com/charts-charting-excel/218780-bar-chart-axis-labels-un-word-wrap.html)

tbraddy

Bar Chart Axis Labels - un Word Wrap
 
I am trying to plot some data with really long axis label names (40+
char). The problem is that I cannot change the "area" that the labels
fit into.

I can change the angle to 45 degrees and everything shows up, but for
a y axis at 0 degrees it auto word wraps to fit inside the "area". Is
there a way to modify the area so that I can get my long names on
there?

I've tried modifying the source cells with Alt+ Enter to see if it
would break it up onto multiple lines, but it doesn't.

Todd

Jon Peltier

Bar Chart Axis Labels - un Word Wrap
 
Excel doesn't give you a lot of control over the way you can lay out labels.
I assume your chart is a horizontal bar chart. To allow more room for
labels, you can make the entire chart wider, or play with font size. But
sometimes there's nothing much you can do.

I've had cases in which I had to remove the built-in axis labels, replace
them with textboxes, populate the textboxes and position them, all using
VBA. Not pretty and not as easy as it may sound.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"tbraddy" wrote in message
...
I am trying to plot some data with really long axis label names (40+
char). The problem is that I cannot change the "area" that the labels
fit into.

I can change the angle to 45 degrees and everything shows up, but for
a y axis at 0 degrees it auto word wraps to fit inside the "area". Is
there a way to modify the area so that I can get my long names on
there?

I've tried modifying the source cells with Alt+ Enter to see if it
would break it up onto multiple lines, but it doesn't.

Todd




Andy Pope

Bar Chart Axis Labels - un Word Wrap
 
Hi,

As Jon mentioned to have complete control you need to use textboxes.
http://www.andypope.info/vba/Axislabel_textboxes.htm

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"tbraddy" wrote in message
...
I am trying to plot some data with really long axis label names (40+
char). The problem is that I cannot change the "area" that the labels
fit into.

I can change the angle to 45 degrees and everything shows up, but for
a y axis at 0 degrees it auto word wraps to fit inside the "area". Is
there a way to modify the area so that I can get my long names on
there?

I've tried modifying the source cells with Alt+ Enter to see if it
would break it up onto multiple lines, but it doesn't.

Todd




All times are GMT +1. The time now is 09:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com