Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2022, 06:45 AM
kilroyscarnival kilroyscarnival is offline How to format horizontal date axis in chart? Windows 10 How to format horizontal date axis in chart? Office 2021
Expert
 
Join Date: May 2019
Posts: 363
kilroyscarnival is just really nicekilroyscarnival is just really nicekilroyscarnival is just really nicekilroyscarnival is just really nice
Default



Quote:
Originally Posted by Sunny Rio View Post
My chart is messed up. It's got an x axis of dates, almost every day over the last year has an entry. The y axis is a number from 1 to 4000. There are several data serieses.

If my x-axis is set to automatic, it makes a huge gap at both sides of the chart, going from far earlier to far later than the range of dates I've input.

So to work around this, I have to manually change the range to something sensible. Then I encounter a different problem - it needs me to input the date in what I presume is computerised date form, the number of days since 1900.

Does anyone know how to fix either of these two problems?
It actually starts where your data starts, 12/22/21, and ends at 12/30/22, just a little ahead of your last input date value.

I am seeing what you're seeing in adjusting the min and max axis values. The trick to figuring that out is to open Excel, type those two numbers in there (44552.0 and 44925.0) and then apply a date numeric style and you'll see they are 12/22/21 and 12/30/22. If you want to adjust your chart to start at say, March first, you can use Excel to convert that date to a number value (44621) and plug that in.

That said, as Guessed mentioned, this whole process is just easier in Excel, especially with something with as many values as you have. Also, you set your top cutoff at 3500, but you have values that go over 30,000 in the early part of your chart which aren't going to show up.

Dates as an axis in either program are going to be processed, by default, in whichever way they are going to chunk up best. I plopped your data into Excel, and it defaults to labeling by month, which may not correspond to your exact dates. In Excel there's an easy adjustment to the axis where you can change it to a "text axis" - at least in 365 which is what I have. I can remember in old versions having to put an apostrophe in front of the number to get Excel to treat the date label as text.

You also had a row of data below your date-labeled rows that was much smaller in value. I removed that for the Excel mock-up attached.
Attached Files
File Type: xlsx chart_excel.xlsx (93.0 KB, 3 views)
Reply With Quote
Reply

Tags
axes, chart, dates



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to format horizontal date axis in chart? Animate Horizontal Axis Title of chart with its values Marcia PowerPoint 3 02-22-2022 07:46 AM
Date Axis on line chart includes dates with no data under them, but text axis causes data to clump jcyo233 Excel 6 10-18-2018 04:49 AM
my excel 2010 line chart has a secondary axis. Its horizontal date axis is incorrect. jalea148 Excel 3 01-06-2017 09:04 AM
How to format horizontal date axis in chart? Select which labels to display on horizontal axis on line chart Jack H Excel 5 01-13-2016 10:05 AM
How to format horizontal date axis in chart? Format Chart X axis - inconsistent values TimTDP Excel 2 12-01-2015 02:56 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft