Line Chart time plotting

I have a CSV file the needs to show time and temperature. Temp being vertical or Y axis shows displays correctly but on the X axis it shows the date which is the first column and seems to be a data set that when highlighting the chart isn't treated the same as the rest of the columns (shown in attachment). How do I get the time range to display anywhere on the X axis, either on the bottom or the top?

Time seems to want to display as a line plot.



MacBook Pro 15″, macOS 10.15

Posted on Jan 31, 2024 12:39 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 31, 2024 7:31 PM

CTPCryo,


Line charts are Category Charts, which means that the horizontal axis is the category axis and the vertical axis is the value axis. The Categories must be in a Header Column. As you most likely know, Categories are plotted at equal distance intervals across the horizontal axis. Since your time values are equal intervals of time this shouldn't be a problem in this case.


If you should happen to want an X-Y chart, Numbers calls that a Scatter Chart. Scatter Charts are plots of individual points. You can simulate a line chart in Scatter chart mode by setting Data Symbol to None and turning on Connecting Lines, either straight or curved.


Frustrating because all the formatting options are context sensitive, so finding them seems hit or miss, unless you really know the jargon.


Regards,


Jerry


Similar questions

7 replies
Question marked as Top-ranking reply

Jan 31, 2024 7:31 PM in response to CTPCryo

CTPCryo,


Line charts are Category Charts, which means that the horizontal axis is the category axis and the vertical axis is the value axis. The Categories must be in a Header Column. As you most likely know, Categories are plotted at equal distance intervals across the horizontal axis. Since your time values are equal intervals of time this shouldn't be a problem in this case.


If you should happen to want an X-Y chart, Numbers calls that a Scatter Chart. Scatter Charts are plots of individual points. You can simulate a line chart in Scatter chart mode by setting Data Symbol to None and turning on Connecting Lines, either straight or curved.


Frustrating because all the formatting options are context sensitive, so finding them seems hit or miss, unless you really know the jargon.


Regards,


Jerry


Jan 31, 2024 9:12 PM in response to CTPCryo

CTPCryo wrote:

the 2D scatter does not display any data as well as the horizontal line does not show the time data....


The following may give you some ideas (2D Scatter, after clicking the chart and then the 'Edit Data References' rectangle button):




Note that I did not select Column A before inserting the chart. That is because your Column A appears to have only one value followed by blank cells. Numbers doesn't know what to do with those blank cells.


How Numbers handles dates and time is a complicated subject. It's different from Excel. If you will have more than one date on the chart (as opposed to one date and multiple times as in your screenshot) then more details will be needed one what you want to show in the chart.


In the meantime you should have no problem charting times in one date. Make sure the Time column is formatted as Date & Time so the values in it are right-aligned by default.


SG

Feb 1, 2024 1:41 AM in response to CTPCryo

Time values won’t work in Scatter Plots. They must first be converted to Duration, and then maybe to number values, not sure. If Duration doesn’t work for you, then strip to dimensionless numbers.


Don’t move to fast though. You may be able to get by by converting the Time column to a header column and treating the time values as category labels, which would allow you to use a line chart.


Jerry

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.

Line Chart time plotting

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