Sparkline charts are great,
Microsoft Office 2007 Key, but there may be times they need a little visual massaging to maximize their usefulness. Consider this scenario: You have a system for which you want to track downtime over the course of a year and (fortunately) it had downtime events in only four of twelve months. Here's the data:
Below the data, I created this column sparkline.
That's fine, but it doesn't highlight the fact that there were no events in January and February,
Windows 7 64 Bit, and also none from June through November. This is because there's no date axis. I can remedy this by setting a sparkline option for the horizontal (or x-) axis by selecting the Date Axis Type option. Here's the option in Excel (just make sure your sparkline is selected):
I select Date Axis Type and in the Sparkline Date Range dialog box that appears, I make sure to select the cells that contain the dates (not the data itself). Now, you can see the sparkline shows the empty space that reflects the missing months:
But I'd like to do a couple more things: I want the sparkline bigger,
Microsoft Office 2007 Enterprise, stretching across the four columns of data, and I also want labels for my horizontal axis below the sparkline columns.
I do this by selecting the cell containing the sparkline cell and then selecting the next three cells to the right along with it. I'll use the Merge Across command to stretch the sparkline out over B3:E3. Now it looks like this:
Finally, I'll add text labels for Mar, Apr, May, and Dec under the sparkline. I type "Mar Apr May" (separated by spaces) in cell B4, which is under the three sparkline columns, and use the Merge Across command to merge that cell with C4. I'll type "Dec" in cell E4, under the last sparkline column. I'll make their font bold and smaller (I used 8 pt),
Windows 7 64 Bit, and then fine-tune the text in the cell by adding or removing spaces between Mar, Apr,
Microsoft Office 2007 Professional, and May until they line up nicely under the three sparkline columns. There!
To learn more about sparklines, see Use sparklines to show data trends. Look for additional blog posts about sparklines here by using the keyword "sparklines."
-- Gary Willoughby <div