Sort x values highest to lowest in scatter plot?

I want to do a simple scatter plot, which actually works fine and looks like this:


User uploaded file

The only problem is, I have to sort the x axis the other way round, starting with 24 copies going down to 10. Anybody got ideas?


C.

Numbers-OTHER, OS X Mountain Lion (10.8.3)

Posted on Dec 13, 2013 7:17 AM

Reply
11 replies

Dec 13, 2013 6:56 PM in response to loop-med

Hi C,


Would this work?

User uploaded file

The method requires an auxiliary column in the data table and one edit to the chart. I added a second edit to the chart, adding weight to the connecting lines between data points, but that one is strictly cosmetic.


Auxiliary column in the table:


Insert a new column before column B. It will become column B.


Formula:


B2: =24-A


24 is the maximum value in column A. "A" references the column A cell on the same row as the formula.


Fill down to the bottom of column B. Results as shown. After creating the chart, this column may be hidden.


Chart:


Select cells B2:E7.

Select Scatter Chart from the Charts button.

When the chart is generated And still selected), click the gear icon at the top left of the selected cells and choose Share X values.

Select the box containing the x axis labels. Press delete to delete this box.

Click the Text box button in the Toolbar to insert a Text box.

Enter 10 in the Text box. Adjust the width of the box to a loose fit around the number.

With the box selected, press command-D seven times to create another seven identical boxes.

Edit the contents of these boxes to contain the even numbers from 10 to 24.

Carefully place the box containing 10 directly below the first data point on the chart, and as far below the x axis as you want the row of labels to appear.

Carefully place the box containing 24 directly below the last data point on the chart, and slightly lower on the page than the box containing 10.

Place the other boxes in ascending order between and slightly below the two boxes already placed.

Select all eight of these boxes, but nothing else.

Go Arrange (menu) > Align Objects > Top

Go Arrange > Distribute Objects > Horizontally

Go Arrange > Group


If desired, adjust the weight and colours of the data point icons and connecting lines.


Note: Any revisions to the data will likely require repeating the construction above.


Data table and chart constructed using Numbers '09 v2.3


Regards,

Barry

Dec 13, 2013 3:42 PM in response to loop-med

C,


Convert column A to a Header Column. Make sure that Row 1 is a Header Row.


Now sort on column A descending.


Lastly, Select the table and Insert > Chart > Line Chart.


The reason for doing all this is that a Scatter Chart will always organize itself with X-values increasing to the right. A Line Chart can be organized any way you like. The downside of a Line Chart is that the X-Axis values are actually treated as Text, so the intervals will be equal regardless of the values.


Jerry

Dec 16, 2013 3:15 AM in response to Barry

Hey guys,


thanks for your answer! Unfortunately I've tried both methods so far without success. The line chart doesn't let me choose "none" for the connection points. With Barry's method I tried to delete the box with the x labels but delete is not working. The option "delete" is black in the right button drop down menu, but seems to not work. I'm sure I'm doing something wrong, and obviously Barry could do it. Anyway, I can't delete this f.... box. Did I forget something?


Regards, C.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Sort x values highest to lowest in scatter plot?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.