Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3273610
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:57:00+00:00 2026-05-17T18:57:00+00:00

I routinely graph time series data in Excel, and I find the default Excel

  • 0

I routinely graph time series data in Excel, and I find the default Excel date-axis labeling on line graphs to be very ugly. In particular,

1) Dates are often rotated horizontally or vertically, which compresses plot area real estate and makes the date labels harder to read. This is because there are two many major tick marks.

2) Labels show too much precision: time series databases will typically dump something like a monthly time series into the spreadsheet with date values like 1/1/2001, 2/1/2001, etc. Excel will try to show the full mm/dd/yyyy date string by default, which might be preferable for a short daily time series but is undesirable for a non-daily series or a series that runs over a long time period. In these cases, formatting like mm/yyyy or yyyy might be preferable.

My question is, does anyone have a good algorithm already written that can make a pretty date label axis? Horizontal labels only with ticks spaced far enough to accommodate that, and intelligent formatting of the date as the data starts to cover a longer and longer time span (i.e. labels that transform from 1/1/2001 to 1/2001 to 2001). I will ultimately have to write this using VBA, but I could translate an algorithm written in another language.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:57:00+00:00Added an answer on May 17, 2026 at 6:57 pm

    This is not a true answer, but maybe a fertilizer …. I share your concerns, as I often run into the same kind of troubles.

    Excel (2003) does not support charts with a true date axis (where the distance from 01-Feb to 01-Mar is 28 units and 01-Mar to 01-Apr is 31 units). The best approximation I found (for charts spanning more than 2-3 months) is to

    • use an X/Y chart
    • manually set the Minimum and Maximum of the Value (X) scale to the integer representing the first of a month (e.g. 01-Feb-2010 represented by integer 40210)
    • set major unit to 30,42 (average length of a month – Excel can’t do variable major ticks)
    • set minor unit to 7 (so I get weeks clear at least)
    • use a custom number format (e.g. “MMM-YYYY”) on the X axis

    Sometimes I tweak the above by temporarily displaying the date as “DD-MM-YYYY” and look how many first-days-of-a-month I hit with my scale, and adjust the Minimum to get an optimum. The longer the date range the less accurate it gets.

    Hope that helps at least a little ….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a REST API which clients routinely POST and PUT data to. When
I am importing massive amounts of data from Excel that have various table layouts.
I'm going to be distributing a plugin that will be routinely updated with features,
I'm writing a routine that validates data before inserting it into a database, and
I have this routine that calculates the seconds-to-date for a struct tm . On
I've got a routine that paints an insanely large graph inside a scroll pane.
I have a Entity Framework design with a few tables that define a graph.
I'm currently using tablesorter to sort a set of graphs. I achieve this by
I routinely upload large bzipped sql files to S3 and have been noticing it
I routinely have to look at byte [1024] and longer in the debugger (VS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.