#1   Report Post  
Posted to microsoft.public.excel.charting
Terry
 
Posts: n/a
Default shift Y axis

I have a question similar to IgorM (6/22/2006) posted, I think.

In simple way describe:
We have a XY (scatter) chart with lines connect points.
Our X axis scale is 0 to 40 with major unit of 5.
Since there is several data point at 0 of X axis, we would like to move Y
axis cross at -1 of X axis (in Excel default Y axis cross at 0 of X axis).

So how do we shift Y axis to -1 of X axis still keep X axis scale of 0 to 40
and not showing -1 of X axis.

  #2   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier
 
Posts: n/a
Default shift Y axis

Unfortunately the invariant point is the axis minimum, so in order to have a
tick mark at zero, you have to cross axes at an integral number of major
units below zero. In other words, min = -5, major unit = 5, axis crosses
at -5, etc.

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


"Terry" wrote in message
...
I have a question similar to IgorM (6/22/2006) posted, I think.

In simple way describe:
We have a XY (scatter) chart with lines connect points.
Our X axis scale is 0 to 40 with major unit of 5.
Since there is several data point at 0 of X axis, we would like to move Y
axis cross at -1 of X axis (in Excel default Y axis cross at 0 of X axis).

So how do we shift Y axis to -1 of X axis still keep X axis scale of 0 to
40
and not showing -1 of X axis.



  #4   Report Post  
Posted to microsoft.public.excel.charting
Terry
 
Posts: n/a
Default shift Y axis

I tried before I send this.
When Y axis cresses at smaller than minimum, nothing happens.

By the way we don't want anything smaller than 0 show up at X axis.


It's an **x-axis option**, "Y-axis crosses at...." Right click
the x-axis and go to Scale.

James Silverton.


  #5   Report Post  
Posted to microsoft.public.excel.charting
Terry
 
Posts: n/a
Default shift Y axis

The problem is we don't want any addition X axis smaller than -1.
So, this will work but this is not the way we want.

The figure will be used on professional journal, it shout not have any
X-axis that from -5 to -1 if there is no data there.


Unfortunately the invariant point is the axis minimum, so in order to have a
tick mark at zero, you have to cross axes at an integral number of major
units below zero. In other words, min = -5, major unit = 5, axis crosses
at -5, etc.




  #6   Report Post  
Posted to microsoft.public.excel.charting
James Silverton
 
Posts: n/a
Default shift Y axis

Terry wrote on Sat, 24 Jun 2006 10:17:02 -0700:

T By the way we don't want anything smaller than 0 show up at
T X axis.

?? It's an **x-axis option**, "Y-axis crosses at...." Right
?? click the x-axis and go to Scale.
??
?? James Silverton.
??

I guess I see what you want and the only thing I can think of at
the moment to have the zero line unobstructed is to have
"y-axis crosses at maximum" checked, which places the y scale on
the right.

James Silverton.

  #7   Report Post  
Posted to microsoft.public.excel.charting
James Silverton
 
Posts: n/a
Default shift Y axis

James wrote to Terry on Sat, 24 Jun 2006 13:44:59 -0400:

T By the way we don't want anything smaller than 0 show up at
T X axis.

?? It's an **x-axis option**, "Y-axis crosses at...." Right
?? click the x-axis and go to Scale.
??
?? James Silverton.
??
JS I guess I see what you want and the only thing I can think
JS of at the moment to have the zero line unobstructed is to
JS have "y-axis crosses at maximum" checked, which places the
JS y scale on the right.

Another possibility suggests itself tho' I admit it is a bit
clumsy. After copying the chart with the y-axis crossing
position set at, say -10, open a graphics program and paste. The
unwanted ticks and the "-10" could be erased. As I said, it's
clumsy but I tried it and it's quite easy.

James Silverton.

  #8   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier
 
Posts: n/a
Default shift Y axis

Then you have to set the min, max, and spacing that you want, hide the
"normal" axis labels, and use a helper series to apply (hidden) points and
data labels. For the labels, you can simply use the X values, so it's
simpler than the examples on my web site which require an additional label
range:

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

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


"Terry" wrote in message
...
The problem is we don't want any addition X axis smaller than -1.
So, this will work but this is not the way we want.

The figure will be used on professional journal, it shout not have any
X-axis that from -5 to -1 if there is no data there.


Unfortunately the invariant point is the axis minimum, so in order to
have a
tick mark at zero, you have to cross axes at an integral number of major
units below zero. In other words, min = -5, major unit = 5, axis crosses
at -5, etc.




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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
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


All times are GMT +1. The time now is 12:43 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"