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  

Switching x-axis & y-axis on line chart



 
 
Thread Tools Display Modes
  #1  
Old November 14th, 2003, 02:45 AM
K. McQ
external usenet poster
 
Posts: n/a
Default Switching x-axis & y-axis on line chart

I am working with a large data spreadsheet with year,
number and currency data. My problem is when I extract
data to create a standard line chart, the chart is
defaulting to a specific x-axis and y-axis format with
data related to each axis. For visualization purposes, I
would prefer to have the data that is currently presented
on the x-axis to instead be presented on the y-axis. And
likewise, I would like the y-axis data be presented in the
x-axis. However, I have been unable to figure out how to
do this and the MS Excel Help menu does not seem to
address this. Can anyone help?
  #2  
Old November 15th, 2003, 03:27 AM
Jon Peltier
external usenet poster
 
Posts: n/a
Default Switching x-axis & y-axis on line chart

If you put the X data first in the worksheet, to the left of (or above
if you put it in rows) the Y data, Excel will draw the chart the way you
want it. If it's too much trouble to switch your data around and redraw
the charts, right click on the chart and choose Source Data from the pop
up menu, click on the series tab, and select a series from the list.
Switch the contents of the x values/categories box and the y values box.
Repeat for your other series.

I've posted a macro that does this for an XY Scatter chart (not a line
chart):
http://www.geocities.com/jonpeltier/...itchXYAxes.zip

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

K. McQ wrote:
I am working with a large data spreadsheet with year,
number and currency data. My problem is when I extract
data to create a standard line chart, the chart is
defaulting to a specific x-axis and y-axis format with
data related to each axis. For visualization purposes, I
would prefer to have the data that is currently presented
on the x-axis to instead be presented on the y-axis. And
likewise, I would like the y-axis data be presented in the
x-axis. However, I have been unable to figure out how to
do this and the MS Excel Help menu does not seem to
address this. Can anyone help?


 




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:44 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.