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

Graph from table with date on x axis

Hello,


I'm gathered data in a table. This data consists of month in a year, and number of users. Different years have different amount of months recorded. This means, that december can have more entries recorded than february. I want to make a graph, that on X axis will have the year, and will have 11 subpoints in between representing months. The data for each month will be plotted on the y axis.


Here is the table:


Date

Number of Users (in millions)

December, 1996

36

December, 1997

70

December, 1998

147

December, 1999

248

March, 2000

304

July, 2000

359

December, 2000

361

March, 2001

458

June, 2001

479

August, 2001

513

April, 2002

558

July, 2002

569

September, 2002

587

March, 2003

608

September, 2003

677

October, 2003

682

December, 2003

719

February, 2004

745

May, 2004

757

October, 2004

812

December, 2004

817

March, 2005

888

June, 2005

938

September, 2005

957

November, 2005

972

December, 2005

1,018

March, 2006

1,023

June, 2006

1,043

September, 2006

1,086

December, 2006

1,093

March, 2007

1,129

June, 2007

1,173

September, 2007

1,245

December, 2007

1,319

March, 2008

1,407

June, 2008

1,463

September, 2008

1,504

December, 2008

1,574

March, 2009

1,596

June, 2009

1,669

September, 2009

1,734

December, 2009

1,802

June, 2010

1,966

September, 2010

1,971

March, 2011

2,095

June, 2011

2,110

September, 2011

2,180

December, 2011

2,267

March, 2012

2,336

June,2012

2,405

September,2012

2,439

December, 2012

2,497

March, 2013

2,749


Thank you.

MacBook Air, OS X Mavericks (10.9)

Posted on Mar 30, 2014 5:41 AM

Reply
Question marked as Best reply

Posted on Mar 30, 2014 6:33 AM

Hi Sam,


You have come across the distinction between Category Charts and Scatter Charts. Both types have a Value Axis, most of the time the vertical axis, where the magnitude of your data is expressed. The difference is in the other axis, most of the time the horizontal one. In Category Charts, the horizontal axis lists the names you assigned to each data point, as text. In Scatter Charts, the horizontal axis represents the value of the X part of an X-Y pair of values.


It seems to me that you are asking how to treat the horizontal axis as values rather than text. The answer is to use a Scatter Chart. The rub is that you have placed your Dates into a Header Column, so they default to text for the purpose of charting and won't work in a Scatter Chart.


To fix this, put your dates in a normal, Body, column and your Dependent Values in an adjacent column, forming X-Y value pairs. Select the two columns and Insert a Scatter Chart. Now, you may not get a label for each data point on the X-Axis because they will be evenly spaced, even if your data isn't. But, you can't have it both ways, at least not easily.


Jerry

6 replies
Question marked as Best reply

Mar 30, 2014 6:33 AM in response to Sam5513

Hi Sam,


You have come across the distinction between Category Charts and Scatter Charts. Both types have a Value Axis, most of the time the vertical axis, where the magnitude of your data is expressed. The difference is in the other axis, most of the time the horizontal one. In Category Charts, the horizontal axis lists the names you assigned to each data point, as text. In Scatter Charts, the horizontal axis represents the value of the X part of an X-Y pair of values.


It seems to me that you are asking how to treat the horizontal axis as values rather than text. The answer is to use a Scatter Chart. The rub is that you have placed your Dates into a Header Column, so they default to text for the purpose of charting and won't work in a Scatter Chart.


To fix this, put your dates in a normal, Body, column and your Dependent Values in an adjacent column, forming X-Y value pairs. Select the two columns and Insert a Scatter Chart. Now, you may not get a label for each data point on the X-Axis because they will be evenly spaced, even if your data isn't. But, you can't have it both ways, at least not easily.


Jerry

Mar 30, 2014 6:51 AM in response to Jerrold Green1

Hey Jerrold,


thank you for your advice. I'm not too sure if I understood it correctly though. Firstly, I created two tables. One with date value, and the second one with number of users value. Then, I created a new graph (i'm not sure whether its a scatter graph, because I don't know what one looks like), but when I click on add chart data and select the dates, I can't see any result. Even if I then select the values.


User uploaded file

Mar 30, 2014 7:17 AM in response to Sam5513

Sam,


Maybe I could have been more clear. There is one other point that may be a problem. I can't tell from the table in your post, but your entry dates may not be recognized as dates by the program. A Month and Year isn't a Date. A Date such as December 1, 2002 can be formatted as December 2002, but December 2002 as an entry isn't recognized as a Date by the program because it is incomplete. I realize that this may seem odd, but it's the way it is.


I've retyped the first half of your data as true dates and charted them:

User uploaded file


After changing the format, we can show as Month Year:

User uploaded file


Jerry

Graph from table with date on x axis

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