Date axis with a partial year

0

1

I have a line chart with data spanning from February 2002 to today. At the moment, the date axis looks like this:

enter image description here

Is there a way to have the first date be Feb-02 (no change), but the next one be Dec-02 then Dec-03 etc.?

assylias

Posted 2012-06-08T12:50:48.257

Reputation: 396

Just to clarify, you want the first interval to be 10 months (Feb-Dec), and all following to be 12 months? – dav – 2012-06-08T13:49:03.150

@DavidVandenbos Yes precisely. I could do without the first mark (Feb-02) if it makes it easier, but the first interval would still be 10 months. – assylias – 2012-06-08T13:50:12.410

Answers

2

In a word - cheat. Use a 'real' date axis and make sure all your data has real dates (eg first or last of the relevant month). This should plot your chart with the first data point at Feb 02 and subsequent ones in Decembers. The spaces between points will be uneven, although the intervals on the axis will be equal (and not line up with your data points).

So scrap the useless axis, hide the axis tick marks and labels completely (ie choose "none" for primary axis).

Plot a second range of data for the same dates but with all values as zero. Show data labels on this second line, beneath the points, choose the category label rather than data values. Colour it grey and choose a narrow line width (eg 1 pt) so it does not stand out like a series. This should look very much like an axis line now. Add data point markers if you need to mimic tick marks (I would suggest the cross marker, in about 3pt).

You will need the labels to be based on cells where the format is set to "mmm yy" to show as Feb 02, Dec 02, Dec 03 etc as per your example. This could be you primary data range or a second one reformatted.

If the labels are too close to your 'axis' try resizing the plot area away from the bottom edge of the chart area. I find it sometimes gets cramped up otherwise. Once it has some breathing room it's OK. You may find that adding the series before removing the axis works better.

The method is completely flexible and will basically reflect whatever range of dates you have, with various unequal intervals, as long as you always have a second column of data with zero values for all the same dates as your actual (plotted) data.

AdamV

Posted 2012-06-08T12:50:48.257

Reputation: 5 011

I am away for a few days. Will try when I'm back. Thanks! – assylias – 2012-06-12T08:30:45.437

1

That's a tough question, because Excel wants to have regular intervals for its axis spacing. See if this works for you, and if not we can try something more creative:

  1. Format your X-axis as a Date Axis.
  2. Set your minimum date as 12/01/2001
  3. Set your maximum date as 12/01/2012
  4. Set your major unit as 1 Year
  5. Set your Vertical Axis crosses at date 2/1/2002-this will move the vertical axis from the left most position (12/1/2001) to 2/1/2002.
  6. Set your position axis On Tick Marks
  7. Save changes and see if that's what you're looking for.

dav

Posted 2012-06-08T12:50:48.257

Reputation: 8 378

Nice try - but Dec-01 appears on the left of the vertical axis which is a bit messy. – assylias – 2012-06-08T14:20:45.293

Ok, I'll see what other options are available. – dav – 2012-06-08T14:25:22.140