You can show the date just by double clicking the axis, and changing to
a Date format on the Number tab. Actually, that's at the end of my last
post.
Of course, it doesn't give a precise kind of date scale axis that you
get with a line chart, where you can have an axis tick at the first of
every month. The quickie one I provided gives you a tick at the first or
second of each month, and you have to hide the day in the date to make
it look okay. You can combine your chart with a line series to get a
better time scale axis, though.
Start with the stacked bar chart. Put some dummy data in the worksheet,
something like this:
Dummy
1/1/03 0
1/1/04 0
Copy this range, select the chart, and choose Paste Special from the
Edit menu, using the New Series, By Column, Names in First Row,
Categories in First Column option. It messes up the chart, but don't
give up. Right click the new series, which is yet another bar stacked on
top, choose Chart Type from the pop up menu, and select any line style.
If it's hard to select that series, select any series and press the
arrow keys until it is selected. Look for 'Series "Dummy"' in the name
box (above cell A1).
Now we have to rearrange the axes. The chart will change in appearance
during all of this, but remember, we're fixing it.
The axis on top of the chart has 2003 and 2004. Double click it, and on
the Scale tab, change the Base Unit to Day(s), and check the Value (Y)
Crosses at Maximum box.
Double click the left hand vertical axis, and check the Value (Y) Axis
Crosses at Maximum Category box on the scale tab.
Double click the right hand vertical axis, and uncheck the Value (Y)
Axis Crosses at Maximum Category box on the scale tab.
Choose the same reasonable min and max for both horizontal axes. For the
data I used in my earlier example, I used a minimum of 9/1/02 and a
maximum of 9/1/04. While you're at it, change the major spacing of the
lower horizontal axis to 1 or 2 Month(s).
Now hide all the unnecessary stuff. Format the dummy Line series to have
no line and no marker. Format the top and right axes to have no major or
minor tickmarks and no tick labels (on the Patterns tab after double
clicking).
The drawback to this approach is that you have to change both time
scales when the data changes, but it would be possible to write a macro
to do this for you.
- Jon