Can't get the x-axis to cross at value 0 for both y-axes
by RGVyZWs » Wed, 19 Mar 2008 04:05:01 GMT
Hello -
I am working on an Excel chart with both a primary and secondary y-axis and
only one x-axis. The primary has positive and negative values. The
secondary has all positive values. I am using the secondary as a rank (by
selecting the box to invert values so the highest rank has a value of 1 and
appears at the top of the secondary y-axis, where rank 25 is the lowest
possible rank and appears at the bottom of the secondary y-axis), in theory
where the x and y axes meet. The x-axis is different points in time. So
this chart shows trends over time.
The issue I am having is the primary x-axis crosses the primary y-axis at 0
(y-axis value), which is what I want. However, the primary x-axis crosses
the secondary y-axis at a value that is not the lowest value on the secondary
y-axis. In this case, since I am using it as a rank, it is not crossing at
the lowest rank. I am not showing the secondary x-axis associated with rank.
I don't have this issue if all of the values on the primary y-axis are
positive. In other words, the primary x-axis crosses at 0 on the primary
y-axis and at the lowest rank on the secondary axis.
My question is, is there a way to fix my problem? Is there an option where
I can set the value where the primary x-axis crosses a value on the secondary
y-axis? I know I can set the value for Primary x-axis to primary y-axis -
and do the same for the secondary x and y axes, but I'm not aware of a way to
cross this primary - secondary boundary.
I imagine the graph's axes looking like a backwards 4 - the primary y-axis
goes above and below the primary x-axis. The primary x-axis is approximately
in the middle. The secondary y-axis is as high as the primary y-axis but
only goes down to the x-axis (i.e., it does not extend below the x-axis). Is
this possible?
Something like this:
| |
|_______|
|
|
Thanks!
- Derek
Re: Can't get the x-axis to cross at value 0 for both y-axes
by Jon Peltier » Wed, 19 Mar 2008 04:39:41 GMT
You have to fix the secondary axis so it goes as far negative as a
proportion of its full scale as the primary axis does. You can do it
manually or using a VBA procedure:
http://www.**--****.com/
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://www.**--****.com/
_______
Re: Can't get the x-axis to cross at value 0 for both y-axes
by RGVyZWs » Wed, 19 Mar 2008 05:34:02 GMT
i Jon -
Thanks for the quick response.
I understand what you are saying in terms of having the primary and
secondary y-axes in proportion to each other, but I think the wrinkle in my
chart is I am using the secondary y-axis as a rank with the lowest rank at
the bottom where the y-axis meets the x-axis.
I completely agree with your suggestion if I were dealing with numbers going
in the same direction on both y-axes, but that is not the case here, since
you can't have a negative rank and I have rank in descending order with $
values in ascending order.
So my envisioned chart looks like this with $ as a bar graph (primary axis)
and rank as a line graph (secondary axis). I want the secondary y-axis to
cross / stop at the primary x-axis at x-axis value $0. If I have the rank
proportions to the $ amounts, it implies a $0 is not the bottom rank, which
is not always the case in my data set. I don't want the primary x-axis to
imply $0 is not ranked the lowest.
$100 | | Rank 1
| |
| |
$0 |_________|Rank 25
|
|
($100)|
Q1 Q2 Q3
- Derek
-----------------------
"Jon Peltier" wrote:
Re: Can't get the x-axis to cross at value 0 for both y-axes
by Jon Peltier » Wed, 19 Mar 2008 06:20:14 GMT
didn't say plot numbers along the negative secondary Y axis, I was telling
you how to align the 0 point of each Y axis. If you don't want the negative
part of the axis to show, don't display any part of the axis (format: no
line), and add an XY series to the chart to serve as a fake axis:
http://peltiertech.com/Excel/Charts/ArbitraryAxis.html
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______
"Derek" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...
Similar Threads:
1.Need PivotChart x axis to cross Y axis at minimum Y axis value
I see an option to have x cross y at max y, but how can I say min y?
2.Value (Y) axis crosses between categories and Secondary Value (Y) Axis
Hi all -
I have 7 series on my chart
Series 1 is column chart - may be area chart eventually (2007 data)
Series 2 is column chart 2008 data
Series 3 is column chart 2007 avg
Series 4 is a column chart 2008 avg
Series 5 is a line chart (32,0 benchmark)
Series 6 is a line chart (points to column chart for 2007 avg, I then
add text to right to explain the column)
Series 7 is a line chart (points to column chart for 2008 avg, I then
add text to right to explain the column)
I would like the column charts for 2007 and 2008 data to be flush to
the origin (12 data points each year)
I would like the benchmark line chart of 32 to span the chart area
from left to right (16 data points)
>From what I've read, the way to accomplish this, is to clear the tick
mark from Value (Y) axis crosses between categories when formatting
the x axis.
However, when I do that, the data point for 2007 closest to the origin
appears cut-off on left side of column
I more or less posted this information on Ozgrid a few days ago
(Ozgrid is now down until Nov. 13 according to the site). Andy Pope
replied that if I move the line charts to the Secondary Value (Y)
Axis, that would resolve the problem.
I must be doing something wrong. I did assign the line chart to
Secondary Value (Y) Axis and then cleared the tick mark on the x axis:
Value (Y) axis crosses between categories. However whatever datapoint
is closest to the Primary Y Axis disappears entirely
What am I doing wrong here?
Send a confidential e-mail for a sample copy of the workbook
Best regards,
-markc
3.why can't Y-axis cross the X-axis at zero
Hi,
The problem I have is that the y axis crosses the x axis
at 1 and when I try to change that to 0 under format
axis>scale it returns a message saying "The Number must
be between 1 and 31999, Try again bla bla.."
Is there anyway to change that?
Thanks,
John
4.Using a cell reference as the axis value for Horizontal axis crosses
Is there any way of referencing a cell as the value in the "axis
value" area of the "Format Axis dialog box. I am currently entering a
number i.e. 2.5. I would like to be able to have this number change
when a user enterer a value in a cell? Would it have to be VBA code
or is there another way?
5.X-axis to cross Y-axis at avrg Y-value
Have been trying for ages to get the X-axis to cross the Y-axis at exactly
the avrg Y-value - to see results above and below average. But I can't find a
way to do it. Anyone?
(Tried recording a macro that takes the avrg value and pastes it into the
field in the "Value (X) axis crosses at" field, but it pastes the formula
rather than the number, and Excel can't handle a formula in that field...)
Thanks for any help
6. chart secondary axis crossing with x axis
7. How to insert X axis scale values next to axis and X axis grid lin
8. Should allow: "Value (X) axis crosses at *-MINIMUM-* value