论坛风格切换切换到宽版
  • 963阅读
  • 0回复

Office Professional 2010 Format column sparkline charts using the date axis and [复制链接]

上一主题 下一主题
离线wanzhis524
 
发帖
3
C币
15
威望
1
贡献值
0
银元
-1
铜钱
13
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2011-06-03
Sparkline charts are great, 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, 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,Office 2007 Key, stretching across the four columns of data,Microsoft Office 2010 Professional, 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,Office Professional 2010, I'll add text labels for Mar,Microsoft Office 2007 Enterprise, Apr,Windows 7 Key, 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), and then fine-tune the text in the cell by adding or removing spaces between Mar,  Apr, 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
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个