I usually collect time series data in Excel, and I find that marking by date of the default date on line charts is very ugly. In particular,
1) Dates often rotate horizontally or vertically, which compresses plot real estate and makes date labels harder to read. This is due to the fact that there are two large marks.
2) Shortcuts show too high accuracy: time series databases usually dump something like a monthly time series into a table with date values ββsuch as 1/1/2001, 2/1/2001, etc. Excel will try to show the default full string length mm / dd / yyyy, which may be preferable for short daily time series, but not desirable for a series that is not related to daily periods, or a series that runs for a long period of time. In these cases, formatting may be preferable, for example mm / yyyy or yyyy.
My question is: does anyone have a good algorithm already written that can make a pretty axis of date stamps? Horizontal labels with only marks far enough to fit this, and intelligent formatting of the date when the data begins to span a longer and longer period of time (i.e. Labels that convert from 1/1/2001 to 1/2001 to 2001 year). I will eventually have to write this using VBA, but I could translate an algorithm written in another language.
Thanks.
Abiel source share