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

X Axis Date Doesn't Work

Hi folks. I was told to start a new thread on this one. So here goes.


I have a date column (not month, but the full date, no time) then a column for some text, then an amount (number), then a running count (number).


I want to select first column, then last column, being a date, and a number. I want to put them into a line chart, with dates properly spaced on the X axis.


I choose those two columns, try to make a scatter chart. I get numbers on the bottom, with no ability to choose the date column in the table, and no ability to choose the date as the X axis...it's so wrong I have no clue what's happening here.


Is it possible to get this type of chart going?


Cheers

Mac Pro, OS X Mountain Lion (10.8.2), Hypercard UG!

Posted on Nov 19, 2012 5:37 AM

Reply
20 replies

Nov 19, 2012 8:51 AM in response to BioRich

Hi Rich,


You may be missing one important distinction between Line Charts and Scatter Charts. It's a rather subtle difference until you get a feel for it. In LIne Charts, one type of Category Chart, the "X" values are text and are best presented in a Header Column. In Scatter Charts, the X part of the X-Y pairs is in a non-Header column.


Here's a small table and chart that I made in about a minute using roughly your workflow, but being careful to use the proper type of column:

User uploaded file


Regards,


Jerry

Nov 19, 2012 9:03 AM in response to Jerrold Green1

Oh there it is. Hehe. I got the email before the reply was even posted.


Hi Jerrold. Thanks for the reply.


The problem is that the date entries are not discrete equi-spaced durations.


Nov 18, 2012

Nov 23, 2012

Jan 13, 2013


Your chart is relying on the fixed duration between x-values. I can't do that, hence the reasonability on the scatter chart. I'm using the linear trendline to demonstrate a line chart in this instance. Pic 1:


User uploaded file



Second, choosing scatter when selecting the first and third columns, gets me the following:


User uploaded file


User uploaded file


That first column is indeed chosen as a date. This chart should work, and shoving around locations in a spreadsheet, feels like a FileMaker workaround. Rather bizarre dependencies/rules to be restricting a spreadsheet. But that's more of an Apple thing. Just wanting to know the workaround for this.


Cheers

Nov 19, 2012 3:58 PM in response to Badunit

OK, now that did the trick. I have that very thing in a table/chart trial right next to it, and it didn't work. I just tried it again and it doesn't work. This application always frustrates me.


But, you did show me how it's done, so I should be able to run from here, even with a new table/chart creation. Thank you for the guidance.


Cheers

Nov 20, 2012 3:16 AM in response to BioRich

BioRich wrote:


Oh there it is. Hehe. I got the email before the reply was even posted.


Hi Jerrold. Thanks for the reply.


The problem is that the date entries are not discrete equi-spaced durations.


Nov 18, 2012

Nov 23, 2012

Jan 13, 2013


Your chart is relying on the fixed duration between x-values. I can't do that, hence the reasonability on the scatter chart. I'm using the linear trendline to demonstrate a line chart in this instance. Pic 1:


User uploaded file



Second, choosing scatter when selecting the first and third columns, gets me the following:


User uploaded file


User uploaded file


That first column is indeed chosen as a date. This chart should work, and shoving around locations in a spreadsheet, feels like a FileMaker workaround. Rather bizarre dependencies/rules to be restricting a spreadsheet. But that's more of an Apple thing. Just wanting to know the workaround for this.


Cheers

Rich,


Please re-read my post.


Jerry

Nov 20, 2012 4:28 AM in response to Jerrold Green1

Jerrold. I read your post the first time around, but just to entertain you, I read it again. You still don't understand what I put. So let me make this clear:


1. This application has this strange issue with "header columns" which places a restriction on what type of charts can be made from presented data. That makes no sense whatsoever.


2. I know the complete difference between the two types of charts. Been using them for decades.


3. Your first type of chart has no application when you have a non-linear x-axis, which is assumed in your example. Do you not see that problem?

Nov 20, 2012 8:11 AM in response to BioRich

BR,


My advice to you was identical to Badunit's, and I didn't yet have the benefit of your screen shot that proved conclusively that you were using the incorrect type of column for your X Data.


1. How Apple chose the behavior of the Header and Body columns with respect to chart types isn't my concern, I was just explaining to you how they work.


2. I wasn't questioning your knowledge of the chart types, but rather explaining the peculiar column type behavior that you would need to know about in order to be successful.


3. My chart example, the first and only one I gave you, works for any interval of X values. Here is the same chart with different dates:

User uploaded file


Regards,


Jerry

Nov 20, 2012 11:40 PM in response to BioRich

"That doesn't work when choosing a line, only as scatter." Correct. A "Line Chart" is a Category chart. Category charts have one value axis and one category axis. A data point's position on the value axis is determined by the value of the datum. The same data point's position on the category axis depends on it's category's position in the column listing the categories. Categories are placed in order of the list, and are equidistant from each other.


"That's the point of scatter." Correct again. A Scatter chart has two value axes. Each data point's position is determined by a pair of values recorded in two, usually adjacent, columns of a table


"If chosen as a line, the dates are merely labels for indiscriminate values provided for the Y axis." More or less correct. I'd omit the adverb and adjective. The dates, or whatever text is used, are labels (or names) for the categories to which the values in the series belong.


If the dates are 'categories', then a category chart is an appropriate choice (although I'd be unlikely to recommend using a Line chart—just being on the list doesn't make it suited to the job).

If the dates are 'values', then a category chart is not an appropriate choice; use a scatter chart to plot the data pairs. There is an option to connect the data points with straight line segments, or with your choice of a variety of curves.


qv: Can I create a chronological X axis without all the data?


Regards,

Barry

Nov 20, 2012 11:44 PM in response to Barry

Barry wrote:



If the dates are 'values', then a category chart is not an appropriate choice; use a scatter chart to plot the data pairs. There is an option to connect the data points with straight line segments, or with your choice of a variety of curves.


The only saving grace here is that we can plot a small choice of trending lines, even point to point linear, which...turns it into a line chart.


In any case, I'm happy, things are fixed.


Cheers

Dec 13, 2013 12:42 PM in response to BioRich

Trying to do a very simple Date:Time (sheet top header) versus changing values in rows (see attached).


Everytime I specify the date:time as the X-axis it changes the Yaxis to the same cells. If I then change the Y-axis definition cells the X-axis revert. Back and forth.


So dates and times across the top with corresponding results in each cell.


Trying to plot day:time (x-axis) versus results (y-axis). Complete disaster.


Numbers keeps trying to make B2:G2 the x-axis. If I try to manual set to B1:G1 it sets the Y-axis to B1:G1 automatically.


Wow what a mess.


User uploaded file

X Axis Date Doesn't Work

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