Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swap x and y axis without manually swapping values

Tags:

So I have a set of data that has conditional formatting. Basically it's a set of photometric measurements of stars that I want to put on a chart with different colors for stars in different ranges of Color Index (basically color them by their spectral class). So my data looks like this: Stars Data

  • The first column is the Absolute Magnitude (M) of the star - I want this on the X axis
  • The rest of the columns are the different spectral classes that have values from another column only in a particular range. - I want these on the Y axis.
  • Currently the chart looks like this and all I want to do is swap the axes, but I cant seem to do it.
like image 360
flux Avatar asked Aug 14 '14 12:08

flux


People also ask

How do you interchange x and y axis in Excel?

Click anywhere in the chart that contains the data series that you want to plot on different axes. This displays the Chart Tools, adding the Design, Layout, and Format tabs. On the Design tab, in the Data group, click Switch Row/Column.


2 Answers

-Right click on either axis

-Click "Select Data..."

-Then Press the "Edit" button

-Copy the "Series X values" to the "Series Y values" and vise versa finally hit ok

I found this answer on this youtube video https://www.youtube.com/watch?v=xLKIWWIWltE

like image 198
anon Avatar answered Sep 27 '22 19:09

anon


  1. Click somewhere on the chart to select it.

  2. You should now see 3 new tabs appear at the top of the screen called "Design", "Layout" and "Format".

  3. Click on the "Design" tab.

  4. There will be a button called "Switch Row/Column" within the "data" group, click it.

like image 38
Sifu Avatar answered Sep 27 '22 18:09

Sifu