A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Switch x and y axes



 
 
Thread Tools Display Modes
  #1  
Old November 12th, 2009, 01:06 AM posted to microsoft.public.excel.charting
Kris
external usenet poster
 
Posts: 220
Default Switch x and y axes

I have a line chart that has the x and y data on the opposite axes to what I
need. I can't figure out how to get my data to chart correctly. The data is
basically as follows and I need height on the y axis and Distance on the x
axis, with each distance group in a common series or line:

Height Distance1 Distance2 Distance3 etc
1 x11 x21 x31
3 x13 x23 x33
5 x15 x25 x35
8 x18 x28 x38
etc

The closest I can get is height on the x axis and distance on the y axis.

I'm sure there must be something I'm missing.

Thanks, Kris
  #2  
Old November 12th, 2009, 02:02 AM posted to microsoft.public.excel.charting
Mike Middleton[_2_]
external usenet poster
 
Posts: 90
Default Switch x and y axes

Kris -

I suggest using an XY (Scatter) chart type, not a Line chart type.

Select only the data for height and Distance1, not the top row labels, and
create an XY (Scatter)chart.

Then add each other XY data series. For more explicit instructions, specify
which version of Excel you are using.

- Mike
http://www.MikeMiddleton.com



"Kris" wrote in message
...
I have a line chart that has the x and y data on the opposite axes to what
I
need. I can't figure out how to get my data to chart correctly. The data
is
basically as follows and I need height on the y axis and Distance on the x
axis, with each distance group in a common series or line:

Height Distance1 Distance2 Distance3 etc
1 x11 x21 x31
3 x13 x23 x33
5 x15 x25 x35
8 x18 x28 x38
etc

The closest I can get is height on the x axis and distance on the y axis.

I'm sure there must be something I'm missing.

Thanks, Kris


  #3  
Old November 12th, 2009, 05:09 PM posted to microsoft.public.excel.charting
Jon Peltier[_2_]
external usenet poster
 
Posts: 386
Default Switch x and y axes

If you put the Y data to the right of the X data, Excel has a better
chance of getting it right. However, three sets of X and one of Y is not
something Excel does readily.

Put the Height column to the right of the Distance columns.
Select the Distance 1 data, then hold CTRL while selecting the Height
data, and make an XY chart.
Do this for the rest of the Distance columns:
Select the Distance i data, then hold CTRL while selecting the Height
data. Select the chart, use Paste Special to add the data as a new
series, with category values in the first column. Repeat as needed.

- Jon
-------
Jon Peltier
Peltier Technical Services, Inc.
http://peltiertech.com/



Kris wrote:
I have a line chart that has the x and y data on the opposite axes to what I
need. I can't figure out how to get my data to chart correctly. The data is
basically as follows and I need height on the y axis and Distance on the x
axis, with each distance group in a common series or line:

Height Distance1 Distance2 Distance3 etc
1 x11 x21 x31
3 x13 x23 x33
5 x15 x25 x35
8 x18 x28 x38
etc

The closest I can get is height on the x axis and distance on the y axis.

I'm sure there must be something I'm missing.

Thanks, Kris

  #4  
Old November 12th, 2009, 10:44 PM posted to microsoft.public.excel.charting
Mike Middleton[_2_]
external usenet poster
 
Posts: 90
Default Switch x and y axes

Kris -

Oops! I missed that you wanted Height on the Y axis.

So, follow Jon's method, i.e., first copy or move the Height column to the
far right. Then select X and Y data, create the XY (Scatter) chart, and add
each other data series.

- Mike


"Mike Middleton" wrote in message
...
Kris -

I suggest using an XY (Scatter) chart type, not a Line chart type.

Select only the data for height and Distance1, not the top row labels, and
create an XY (Scatter)chart.

Then add each other XY data series. For more explicit instructions,
specify which version of Excel you are using.

- Mike
http://www.MikeMiddleton.com



"Kris" wrote in message
...
I have a line chart that has the x and y data on the opposite axes to what
I
need. I can't figure out how to get my data to chart correctly. The data
is
basically as follows and I need height on the y axis and Distance on the
x
axis, with each distance group in a common series or line:

Height Distance1 Distance2 Distance3 etc
1 x11 x21 x31
3 x13 x23 x33
5 x15 x25 x35
8 x18 x28 x38
etc

The closest I can get is height on the x axis and distance on the y axis.

I'm sure there must be something I'm missing.

Thanks, Kris



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:15 AM.


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