How do I change the x-axis from "Column A" to "Column C" in Numbers?

I have a table that was generated by a blood pressure app. Column A is Date, B is Time, and further columns specify BP measurements like systolic and diastolic. Numbers doesn't recognize the date text as a "Date" in the format it's in. If I chart the data, it spreads the entries evenly across the x-axis, even though they may be days or weeks apart.

I created a new empty C column and used the DATE function to compute a value recognized as year, month, and day by parsing A.

But now, no matter how I try adding or deleting Categories, it insists on using Column A as the x-axis.

How can I get it to use C, the actual date as the x-axis?


[Re-Titled by Moderator]


Mac mini, macOS 15.3

Posted on Mar 12, 2025 11:02 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 12, 2025 11:59 AM

You're so close.


Two things will help here. First, you've done the hard work of converting the text to a date field. That's key.


By default, Numbers will use the header row and column for the axis labels. Since you added the calculated DATE() in column C, Numbers didn't pick that up. It would have been easier if you'd created a new column A and put the dates there, but even then, that's not the key.


I'm guessing that you created a Line Chart from your data. Despite the valid DATE()s, numbers will treat all rows as equal and NOT create a time-based chart.


The correct chart to use is a Scatter chart. This is the only chart that honors gaps in timelines.


Now, you might have tried that and didn't get the result you wanted, but that's because Numbers' defaults don't always make sense and you have to do a little tweaking.


I created a dummy table (with your calculated dates in column C), selected the Date, Diastolic and Systolic columns, clicked Chart -> Scatter and this is what I got by default:




Pretty close - at least the values match their dates over time. What's missing is the lines, but that's because scatter charts don't use them by default.


You need to select the chart (click anywhere) and check the Inspector for Connection Lines and set it to Straight:



That should get you what you want (I hope):



Thank goodness that's just dummy data :)


7 replies
Question marked as Top-ranking reply

Mar 12, 2025 11:59 AM in response to joecascio

You're so close.


Two things will help here. First, you've done the hard work of converting the text to a date field. That's key.


By default, Numbers will use the header row and column for the axis labels. Since you added the calculated DATE() in column C, Numbers didn't pick that up. It would have been easier if you'd created a new column A and put the dates there, but even then, that's not the key.


I'm guessing that you created a Line Chart from your data. Despite the valid DATE()s, numbers will treat all rows as equal and NOT create a time-based chart.


The correct chart to use is a Scatter chart. This is the only chart that honors gaps in timelines.


Now, you might have tried that and didn't get the result you wanted, but that's because Numbers' defaults don't always make sense and you have to do a little tweaking.


I created a dummy table (with your calculated dates in column C), selected the Date, Diastolic and Systolic columns, clicked Chart -> Scatter and this is what I got by default:




Pretty close - at least the values match their dates over time. What's missing is the lines, but that's because scatter charts don't use them by default.


You need to select the chart (click anywhere) and check the Inspector for Connection Lines and set it to Straight:



That should get you what you want (I hope):



Thank goodness that's just dummy data :)


Mar 12, 2025 12:54 PM in response to joecascio

That's not the case at all. He's the chart recreated with the calculated date in column A:



It's certainly easier to do with adjacent columns since you can just drag across them to select, but it's not a requirement.


Oddly, in testing this, I did get a graph similar to yours, but I can't recreate it now. Either way, the key is in the Series Inspector:



When you click on one of the data points, the Series inspector will show you the settings. In this case you can see that the X values are taken from column A. It sounds like this is getting picked up incorrectly, but it's fixable - just delete the Table 1::A (or whatever reference is in there), then click on the column heading you want this series to use.

You may need to repeat this for each series.

Mar 12, 2025 2:01 PM in response to Camelot

Here's what I found. If I just select non-contiguous columns with cursor-CMD, I only get the last two. However, I can then select the graph, then Series, as you said, then change the X to the new column. That gives me dates on the x-axis, but only one of the data columns. So further, I have to then click on Edit Data References below the graph, and add the additional column. Then it comes out right. Whew. Doesn't seem like it should be that difficult.

Anyway, thanks so much for your help. Much appreciated.

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.

How do I change the x-axis from "Column A" to "Column C" in Numbers?

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