Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Plot x-y data in Numbers

Hi,


I do this quite often in Microsoft Excel (and have done so for about 20 years now). In the beginning I remember Excel being a bit non-intuitive and quirky with x-y scatter plots. So, maybe it's just the same sort of thing with Numbers.


Not looking anything complicated. I'm not picky - Just looking to plot two columns of data, one for the horizontal (x-axis) and the other for the (y-axis). My data is in ordered pairs. I've been plotting data for 30 years - so there is no need to give me a lecture on something that basic to me. I just need to make a graph and that should be extremely easy to explain by example.


Thanks,


David

MacBook Pro (Retina, 15-inch, Mid 2015), OS X El Capitan (10.11.1)

Posted on Dec 11, 2016 5:04 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 11, 2016 6:03 PM

Hi David,

In Numbers, the data for a scatter plot must be in non-header cells. (I recommend that you have the labels in a Header Row or Column.)

Select the columns (or Rows) and click on the Chart button. Choose Scatter Plot

User uploaded file

Or use Menu > Insert > Chart.

User uploaded file

There is more (for example trendline) but I'll leave it there.


Regards,

Ian.

4 replies
Question marked as Top-ranking reply

Dec 11, 2016 6:03 PM in response to silver_mica

Hi David,

In Numbers, the data for a scatter plot must be in non-header cells. (I recommend that you have the labels in a Header Row or Column.)

Select the columns (or Rows) and click on the Chart button. Choose Scatter Plot

User uploaded file

Or use Menu > Insert > Chart.

User uploaded file

There is more (for example trendline) but I'll leave it there.


Regards,

Ian.

Dec 11, 2016 10:48 PM in response to silver_mica

"By the way, this works for the line plot (which I like the look of better than just points)"


The Line Plot is a Category chart. The labels on the category ( x ) axis are 'categories', not 'values,' and are equally spaced with no regard to the numerical difference from one to the next (assuming they are 'numbers'.


A Scatter chart has two 'value' axes, and distance from the origin on both is proportional to the values in each series.


Scatter charts can show individual data point, with no connection from point to point, or can show the data points connected by line segments or by curves, or can show only the connecting lines, omitting the data points.


Here's a pair of examples, using estimated Y data in the small chart shown in your post. X 'data' has been chosen to demonstrate the differences between a Category chart and an x-y Value chart.


This is the Category chart:

User uploaded file

Note that the Category labels are in a Header column and the Y data series are in two non-header columns. The selection feeding the chart is rows 2-7 of columns B and C.

Note the spacing of the 'numbers' on the x axis. 0 and 5 are separated by the same amount of space as 5 and 7 and as 7 and 8.


Here is an x-y Scatter chart using the same data;

User uploaded file

Note that the blue selection rectangle encloses rows 2-7 of columns A, B and C, and that the table does not have a Header column. (The grey shading in part of column A is applied by Numbers to show these cells are selected—the three unselected cells at the bottom of the table show the default 'no fill' condition of non-header cells.)


Note also the horizontal spacing of the data points, and the resulting change in the slope of the lines connecting the data points.


The choice of Line Chart vs Scatter Chart should depend not of the perceived aesthetics of the chart (as can be seen above, both can have a very similar style), but on which gives a truer picture of the data.


Construction note:

For an x-y scatter chart using two series of y values and a shared series of x values, begin by selecting a single x-y pair of columns (A and B), then choose the chart type. With the chart created, and selected, click the Edit Chrt References button below the chart, then go to the table and drag the small white handle right to add the second column of Y values:

User uploaded file

The second set of Y values will be immediately added to the chart.



Regards,

Barry

Dec 11, 2016 6:31 PM in response to Yellowbox

I found a way. Part of what was confusing was that I was expecting the first selected column to be the x-axis and the second column selected to be the y-axis - when adding data to the chart (what the help file indicates to do). That never occurred. Instead, I'd always get two graphs.


I solved the problem this way.


In the inspector (with the chart selected) I selected the Axis tab and then Category ( x ). In the Label References field you will see those cells that make the x-axis. The large screen capture below shows this.


First I highlighted every cell (command + a after placing the cursor in this field) and then pressed the delete button to delete all x-axis data. Next, I added new x-axis data by using mouse pointer to select the data values in my column containing x data. Clicking the header in this instance did not select the entire column - I had to click and drag. After x-axis data had been added I could add the y values in the normal way, by clicking on the header.


By the way, this works for the line plot (which I like the look of better than just points)

User uploaded file


Inspector view of chart.

User uploaded file


David

Dec 12, 2016 2:14 AM in response to silver_mica

Hi David,

Thanks for the green tick!

Another way to create a scatter plot with two Y data.

A table with a Header Row containing the labels. Select X, Y1 and Y2.

User uploaded file

Insert Scatter Plot and click on Edit Data References

User uploaded file

Numbers automatically includes both Ys and automatically sets Share X Values (click on bottom left of the numbers window).


Regards,

Ian.

Plot x-y data in Numbers

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