How can I rotate a chart 90 degree?

yabi100

Board Regular
Joined
Aug 10, 2013
Messages
89
Office Version
  1. 2016
Platform
  1. Windows
I have two columns, let say x and z of 30 points. Where z is depth and should be shown in vertical axis. And if I can show it downward, it will be perfect. I use x,y (scatter) to draw the chart which is OK but Z appears in horizontal axis but I want it to be shown in vertical axis. Simply it looks like I want to rotate the chart 90 degrees. How can I exchange z and x values in the chart?
 
You can do it directly in the formula or in the Edit Series dialog:

1667394300537.png


1667394246461.png
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Can you not just edit the series and swap the X and Y ranges around?
Yes that is exactly what I want to do, but tried few things with no result. Do you mean I rearrange thier position in the Series function? I haven't tried this solution. Let me try it. In show data I clicked the buttion on top which says change but the result is not what I want and is completely wrong.
You can do it directly in the formula or in the Edit Series dialog:

View attachment 77630
I am using Excel 2016 and it is as follows:
capture-gif.77660
 

Attachments

  • Capture.GIF
    Capture.GIF
    19.5 KB · Views: 81
Upvote 0
If that's what you see, you do not have an XY scatter series.
 
Upvote 0
Yes that is an XL scatter chart but if you had an XY series selected you would have a box for x values and a box for y but you didn’t.
 
Upvote 0
@yabi100
Another option in case the problem is still open; see the images:
-I have a serie of datas in Sheet1-J21:K34
-If I plot these datas using the scattered chart I'll get the classic curve
-now click on the curve; you will select the points on the curve, the source data will also be highlighted, and the formula associated to the curve will be shown in the formula bar
-with the given information, it will show:
Excel Formula:
=SERIE(Sheet1!$K$20;Sheet1!$J$21:$J$34;Sheet1!$K$21:$K$34;1)
Translated:
Excel Formula:
=SERIE(TheSerieName; TheHorizData; TheVerticalData; Z Position)

This is shown in the first attached image

Now if you modify that formula by exchanging TheHorizData and TheVerticalData you will get the rotated graph
As is shown in the second image
 

Attachments

  • YABI-1_Immagine 2022-11-07 112310.jpg
    YABI-1_Immagine 2022-11-07 112310.jpg
    104.8 KB · Views: 12
  • YABI-2_Immagine 2022-11-07 112436.jpg
    YABI-2_Immagine 2022-11-07 112436.jpg
    106.9 KB · Views: 11
Upvote 0
Solution
Dear Anthony47
Just
@yabi100
Another option in case the problem is still open; see the images:
-I have a serie of datas in Sheet1-J21:K34
-If I plot these datas using the scattered chart I'll get the classic curve
-now click on the curve; you will select the points on the curve, the source data will also be highlighted, and the formula associated to the curve will be shown in the formula bar
-with the given information, it will show:
Excel Formula:
=SERIE(Sheet1!$K$20;Sheet1!$J$21:$J$34;Sheet1!$K$21:$K$34;1)
Translated:
Excel Formula:
=SERIE(TheSerieName; TheHorizData; TheVerticalData; Z Position)

This is shown in the first attached image

Now if you modify that formula by exchanging TheHorizData and TheVerticalData you will get the rotated graph
As is shown in the second image
read your answer. This is very cool and exactly is what I am looking for. Let me try it and let you know if it works for me or not?
 
Upvote 0
@yabi100
Another option in case the problem is still open; see the images:
-I have a serie of datas in Sheet1-J21:K34
-If I plot these datas using the scattered chart I'll get the classic curve
-now click on the curve; you will select the points on the curve, the source data will also be highlighted, and the formula associated to the curve will be shown in the formula bar
-with the given information, it will show:
Excel Formula:
=SERIE(Sheet1!$K$20;Sheet1!$J$21:$J$34;Sheet1!$K$21:$K$34;1)
Translated:
Excel Formula:
=SERIE(TheSerieName; TheHorizData; TheVerticalData; Z Position)

This is shown in the first attached image

Now if you modify that formula by exchanging TheHorizData and TheVerticalData you will get the rotated graph
As is shown in the second image
Dear Anthony
This wroked like a charm. Thanks for your support. I tagged your reply as: Solution
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top