#1   Report Post  
Posted to microsoft.public.excel.charting
JJ
 
Posts: n/a
Default X-axis

Is it possible for the label on the x-axis to adjust to the top or bottom on
weather or not the bar graph is negative or positive. For example, I have
pivot chart that has both positive and negative values on it. I would like
all the positive labels to be below the zero line, and all the negative
labels to lie above the 0 line. Any help?
  #2   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier
 
Posts: n/a
Default X-axis

You can't format the "official" axis labels this way, but you can fake it
with a dummy axis, using one of these techniques and examples:

http://peltiertech.com/Excel/Charts/ArbitraryAxis.html
http://peltiertech.com/Excel/Charts/...cNotation.html

Since you won't have to construct a custom scale, your task is easier. You
should hide the regular labels, then add two XY or Line series, each having
a point along the axis where you need the labels. Make two ranges in the
worksheet, one for labels above the axis, and one for those below; you can
use formulas to show either the label or "" depending on whether the value
is positive or negative. Then use one of these labeling programs to get
these labels onto the dummy series you've added (both Excel add-ins, free to
download, and easy to use):

Rob Bovey's Chart Labeler, http://appspro.com
John Walkenbach's Chart Tools, http://j-walk.com

Finally, hide both added series by setting the line and markers to None.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


"JJ" wrote in message
...
Is it possible for the label on the x-axis to adjust to the top or bottom
on
weather or not the bar graph is negative or positive. For example, I have
pivot chart that has both positive and negative values on it. I would like
all the positive labels to be below the zero line, and all the negative
labels to lie above the 0 line. Any help?



  #3   Report Post  
Posted to microsoft.public.excel.charting
Andy Pope
 
Posts: n/a
Default X-axis

Hi,

This is not a builtin option. What is built in is to have the axis
labels displayed at the bottom of the plot area rather than on the axis
if your problem is really just the negative bars going through your labels.

Otherwise you could add a dummy data series and use the data labels to
act as axis labels. See Jon Peltier's explanation of how to build an
arbitrary axis.
http://peltiertech.com/Excel/Charts/ArbitraryAxis.html

Cheers
Andy

JJ wrote:
Is it possible for the label on the x-axis to adjust to the top or bottom on
weather or not the bar graph is negative or positive. For example, I have
pivot chart that has both positive and negative values on it. I would like
all the positive labels to be below the zero line, and all the negative
labels to lie above the 0 line. Any help?


--

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 add a second x axis with same Y axis value in one plot Mike Charts and Charting in Excel 1 October 19th 05 08:42 AM
Secondary Axis Match Primary Axis Gridlines [email protected] Charts and Charting in Excel 1 July 31st 05 09:23 PM
Pivot Table, Line Chart with Secondary Y axis, Page Field selection destroys Y2 axis [email protected] Charts and Charting in Excel 0 July 13th 05 09:30 PM
can't change how data on 2nd axis is being displayed Rebekah Charts and Charting in Excel 1 May 4th 05 02:51 PM
Second X axis at top of chart? Phil Hageman Charts and Charting in Excel 1 December 29th 04 01:48 PM


All times are GMT +1. The time now is 06:54 AM.

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

About Us

"It's about Microsoft Excel"