x-axis category labels

Is there a quick and easy way to add labels to the x-axis category of a graph? I'm trying to create dates on the x-axis; eg. 1/6, 1/13, 1/20, etc. to the end of the year for my weekly financial information. Column A already has those dates. Can I copy column A and apply it to the x-axis category?

iMac, OS X 10.11

Posted on Jul 7, 2024 3:06 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 7, 2024 6:33 PM

If your X data is evenly spaced, a category chart can still work for you. From your explanation, your data is every 7 days. As long as it is 7 days without fail, the result of a line (category) chart and scatter chart will be the same. If it isn't exactly 7 days once in a while, it might still be okay. Your call on that.


If column A has the dates for the X axis, the easiest way to make it use them as labels on a category chart (like the line chart) is to make column A a header column before making your chart. By default they will be used as the X axis labels.


One advantage of the line chart over the scatter chart is the X axis labels will be exactly the dates you have in column A. With a scatter chart, it will use dates that match up with the gridlines, which are unlikely to be the dates in column A.


To answer your direct question: yes, you can select the dates in column A to be the labels even if they are not in a header column.

  1. Don't select column A when making the chart
  2. Select the chart and go to the tab that has the X axis info
  3. Select all the "untitled's" in the Label References box and delete them
  4. While still in the box, select the range of cells from column A to use for the labels (or type it in)
  5. Set the Category Labels to "Auto-Fit" or to one of the other selections other than "none"





2 replies
Question marked as Top-ranking reply

Jul 7, 2024 6:33 PM in response to 1sland3r

If your X data is evenly spaced, a category chart can still work for you. From your explanation, your data is every 7 days. As long as it is 7 days without fail, the result of a line (category) chart and scatter chart will be the same. If it isn't exactly 7 days once in a while, it might still be okay. Your call on that.


If column A has the dates for the X axis, the easiest way to make it use them as labels on a category chart (like the line chart) is to make column A a header column before making your chart. By default they will be used as the X axis labels.


One advantage of the line chart over the scatter chart is the X axis labels will be exactly the dates you have in column A. With a scatter chart, it will use dates that match up with the gridlines, which are unlikely to be the dates in column A.


To answer your direct question: yes, you can select the dates in column A to be the labels even if they are not in a header column.

  1. Don't select column A when making the chart
  2. Select the chart and go to the tab that has the X axis info
  3. Select all the "untitled's" in the Label References box and delete them
  4. While still in the box, select the range of cells from column A to use for the labels (or type it in)
  5. Set the Category Labels to "Auto-Fit" or to one of the other selections other than "none"





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.

x-axis category labels

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