PTS Blog

Custom Solutions | Commercial Utilities | Training | Charts and Tutorials | PTS Blog

 

Main menu:

 
Peltier Tech
Chart Utilities

PTS Waterfall Chart Utility
PTS Cluster-Stack Column Chart Utility
PTS Box and Whisker Chart Utility
PTS Marimekko Chart Utility
PTS Dot Plot Utility
PTS Cascade Chart Utility

Subscribe

Site search

Subscribe

Site search


Recent Posts

Recently Commented

Popular Posts

Archive


 

Categories


 

Buy me a coffee

If this topic or the whole blog has been helpful, support further development by treating me to a cup of coffee.


Privacy Policy

Creative Commons License
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

Microsoft Chart Advisor

by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2009.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

I learned from Tim Mayes in Office Labs Chart Advisor for Excel that Microsoft’s Office Labs has developed an add-in that advises you based on your data what chart type you should use. From the Office Labs Chart Advisor page:

Chart Advisor is a prototype that provides an alternate approach for creating charts in Excel 2007. This add-in uses an advanced rules engine to scan your data and, based on predefined rules, displays charts according to score. Top scoring charts are available for you to preview, tweak, and insert into your Excel worksheet.

Tim’s take on the Chart Advisor was that it didn’t predict the chart type he would have expected based on his data, which consisted of a list of student names plus scores for three tests. Tim would have expected a clustered column or bar chart because of the list of categories (student names), but the utility ignored the category data and instead suggested an XY chart.

Despite Tim’s mild disappointment, I thought that perhaps Office Labs has come up with a tool to help Joe User display his data more effectively. So I rushed to the Chart Advisor page, downloaded the Chart Advisor installer, started to install, and ran into this pleasant screen:

Chart Advisor Setup Failure

Grrr. Okay, I thought the PIAs were installed, though I never used them directly. I checked, and in fact the PIAs were listed right there in Add or Remove Programs. I uninstalled the existing PIAs, then followed the link to the PIA download, downloaded the executable, ran the executable which unpacked the installer, then ran the installer. The installer started okay but seemed to vanish after a few moments, with no dialog verifying that installation had completed successfully, though it was again listed in Add or Remove Programs. I uninstalled, rebooted, and tried reinstalling a few times, to no avail.

So my review of the Chart Advisor is on hold. I do have some words of wisdom for the Microsoft developers:

This is an add-in for Excel, isn’t it? What’s wrong with Excel VBA for such a straightforward utility? VBA interfaces so readily with Excel and the rest of the Office applications, even with Excel and Office 2007. Why complicate your life, and the lives of your users, by writing it in a framework which requires uninstallable PIAs? What is PIA anyway, besides a shorter form of the acronym PITA? I’ve heard of deployment issues with VSTO and .Net add-ins, which rely on these PIAs to control Office applications; now I’ve encountered such issues for the first time.

Hopefully this is just a temporary setback, because I did look forward to testing this utility.

Possibly Related Posts:

Bookmark and share this entry:
  • Digg
  • del.icio.us
  • Facebook
  • Technorati
  • Twitter
  • StumbleUpon
  • Google Bookmarks
  • Reddit
  • MySpace
  • Slashdot
  • LinkedIn
  • Yahoo! Buzz

Learn how to create Excel dashboards.

Comments


Comment from derek
Time: Tuesday, August 26, 2008, 2:50 am

Ages ago, commercial software used to come with a tool that specifically trained users in such arcane secrets as “when using the Chart Wizard, leave the header over the category column blank”, instead of letting the community work it all out for themselves, and share the knowledge by word of mouth. The tool was called a ‘manual’.

Sadly, we have lost the technology of the ancients, and no longer know how to make a ‘manual’.


Comment from Rob
Time: Tuesday, August 26, 2008, 4:19 am

Same old .NET story.

MS try to push the line that VBA is dead and that we should all be migrating to .NET/VSTO, but this is absolutely typical of the deployment nonsense that occurs more often than not when trying to program Office with MS’s preferred technology.

Add this to the Ribbon stupidity and you’ve got more evidence than you need that MS has lost touch with the reality of life at the gridface.


Comment from Chandoo
Time: Tuesday, August 26, 2008, 7:08 am

How typical… why cant they create a website where user can answer few yes / no questions about their data and get a list of charts to use. better still, they could have tweaked the chart wizard in 2007 so that it automatically recommends charts when you launch it… ptch…


Comment from Jon Peltier
Time: Tuesday, August 26, 2008, 7:23 am

Actually, they retired the chart wizard after 2003. This would have been a nice additional step to the wizard, and like many events, this has me thinking…. Why can’t I design a chart wizard that has the functionality of the old 2003 wizard, with a chart type adviser like this new utility is purported to be, and without the difficult to get to chart formatting of Excel 2007.

Ah, in my free time.


Comment from Tony
Time: Tuesday, August 26, 2008, 8:44 am

You can always use Juice Analytic’s Chart Chooser


Comment from Jon Peltier
Time: Tuesday, August 26, 2008, 9:24 am

Tony – Sure, but this was something new that I could pull apart.


Comment from Sean Carmody
Time: Tuesday, August 26, 2008, 4:40 pm

I have always looked to Excel (and indeed Microsoft products in general) for function rather than form. Until the release of Excel 2007, the defaults for charts have always been horrible from a design perspective: grey backgrounds, strange colour choices for the data series and so on. While the defaults have certainly improved greatly now, Microsoft’s track record is such that my initial reaction to the Chart Chooser, without having tried it, is to be dubious. I am, however, open to persuasion and so will be trying it out myself very soon.


Comment from Jon Peltier
Time: Tuesday, August 26, 2008, 5:23 pm

Sean -

The default chart formatting options in Excel 2007 are better than in 2003, but only marginally. The chart formatting and editing tools in 2007 are abysmal. The controls are spread over three ribbon tabs, but always seem not to be on the visible one. Double clicking does not open the formatting dialog. Features that used to be properties of series (data labels, error bars, etc.) are no longer found on the Format Series dialogs. The Format Series dialog for a line or XY chart offers me four Marker-related and two Line-related tabs, which takes much longer to navigate than the one single tab that covered these formats in Excel 2003.

I was not expecting the Chart Advisor to be a great tool, but I was hoping it would be a good starting point, something that could be bent and twisted into shape.


Comment from Bob
Time: Tuesday, August 26, 2008, 9:29 pm

Hi Jon,

Earlier post was a link that we thought might fix the PIA problem. As David mentioned the problem has been identified and we hope to have a fix tomorrow. Sorry for the delay.

Bob


Comment from Jon Peltier
Time: Tuesday, August 26, 2008, 9:35 pm

Bob – Thanks for the update.


Comment from Bob
Time: Wednesday, August 27, 2008, 8:35 pm

Hi Jon,

Just wanted to give you an update. We were testing the fix and ran into a second issue. This problem is outside the scope of Chart Advisor, but is nonetheless affected. I am hopeful that a fix will be available tomorrow. And… I have some confidence that I won’t have to say the same thing tomorrow! Again, my apologies.

Bob


Comment from Colin Banfield
Time: Wednesday, August 27, 2008, 9:55 pm

Jon, given the UI, this thing can’t be for anything else but a development environment. Who creates a UI for Joe User with an undecipherable get PIAs message? And I don’t understand why PIAs should be required anyway. If the add-in is written in .NET, an installable dll is all that should be needed. Obviously a lab experiment. Furthermore, junk charts outnumber useful charts in Excel by about 10:1, so there’s a high probability that the add-in will suggest one of the “junkies”.


Comment from Jon Peltier
Time: Wednesday, August 27, 2008, 10:14 pm

Bob – Thanks again for the update.

Colin – As I understand it, the PIAs are used by VSTO to make it easier to interact with Office from the .Net code. I’ve only fiddled and diddled with .Net. I did the Hello World thing, but the .Net clock didn’t work, even when I copied the code off the internet. But that’s me.

The problems I’ve heard of with .Net and VSTO is that deployment’s a bitch. I know MS is pushing .Net over VBA for Office solutions, and to me it doesn’t make a lot of sense. If this is a little toy to help someone pick an effective chart type, then it shouldn’t need anything fancier than VBA. MS Labs is working on the forefront, so they’re likely to exploit .Net, and to ask for help with the object model hooks into the Office apps. And they did say it wasn’t even a beta, just something to try out. I’ll try anything, that’s what VirtualPC’s for.

I understand that most people use Excel to make junky charts. I hope public opinion and habitual misuse of chart types don’t shade the Advisor’s advice. I was initially hoping to get the Advisor, look under the hood, maybe reuse the good parts and the infrastructure, and adjust the suggested chart types according to my own set of best practices. Looking under the hood is not going to be easy if it’s in .Net. Maybe though we can establish a dialog with MS labs and guide them toward effective charting suggestions.


Comment from Bob
Time: Thursday, August 28, 2008, 2:35 pm

Hi Jon,

New bits are posted on the website (http://www.officelabs.com/projects/chartadvisor/Pages/default.aspx). Sorry for the delay. We are looking forward to your feedback on Chart Advisor.

Cheers, Bob


Comment from Jon Peltier
Time: Thursday, August 28, 2008, 3:40 pm

Update

I’ll follow up with a “formal” blog entry, but I thought I’d check in. MS Labs have fixed whatever the glitches were with the installation of the first version of the chart advisor. I was able to install the add-in fine this time. I still think any addin that requires PIAs is over the top, but that’s my opinion, and you’re entitled to it because you’re reading my blog.

Anyway, it installed nicely, and it sits there next to the chart group on the Insert tab. Select data and click the button, it thinks a moment, and comes up with a set of selections. It is pretty slick, and I managed to crash it with the first data set I selected (I wasn’t trying, I promise!). I selected a 3×3 range of blank cells, and I was told it was an unexpected situation. Okay, that’s fair, the instructions say to select data then click, and 3/4 of your users will use it that way. Of course, the utility had turned off screen updating, which it probably doesn’t need to do, then didn’t restore it when I canceled.

So manually I restored screen updating and tried a few ranges. The interface is pretty slick, and I like the fact that it provides the reasoning behind its chart selections. So many points because of X, so many because of Y, etc.

I’ll hold off on a more detailed review until I have time to do it justice, but it made a reasonably good first impression. I made no judgment yet about the suggested chart types, but I will. I noticed some things that deserve mention:

  • The Advisor doesn’t seem to know the trick of leaving the top left cell(s) blank to indicate series names and categories range.
  • The Advisor only seems to want to make charts with series in columns.
  • The advisor knows when the data range contains no numerical values (but misses all blanks).
  • The Advisor runs many of the checks of category values as my custom apps to: are they text, are they dates, are they years?
  • The Advisor seems to evaluate some of the properties of the data, including number of distinct values, spread of the values, etc.

Given that it contains a set of rules somewhere, I wonder if eventually it would be possible to rearrange the rules, apply custom values to the rules, even create your own rules. This would make it a very cool application.


Comment from Tim Mayes
Time: Thursday, August 28, 2008, 6:04 pm

Jon,

This update seems to have removed all of the eye-candy from the charts. Also, the chart scores are now much higher (for my original data set) than they were previously, and I can no longer see how the scores are determined. On the plus side, it does give more choices than I previously got.

Oh, I also now get a message saying that it is only a prototype and hasn’t been tuned for performance. Interestingly, the updated version seems slower than the original.


Comment from Dave Lee
Time: Friday, August 29, 2008, 11:31 am

Hi Jon. Thanks for your comments.

Our rules files is around 5000 lines. It is called ChartAdvisor.Rules.xml, and it is installed to your AppData directory (you’ll need to search since the location depends upon your OS and configuration). In the tooltips, we show you only the scoring rules which evaluated to true. We also have rules for data mapping (figuring out which Excel series should be mapped to chart axis), and formatting rules, which allow things like turning on the gummy styles only when there are a few bars on a column chart, or moving legends in to the slices on a pie chart when the smallest slice is > 5%.

btw, I wouldn’t spend time trying to change the rules file — the syntax is fairly rigid and modifications by hand can cause it to be easily broken, so we overwrite the file when we start up.

The folks on the immediate development team here are not charting experts, but we’ve been talking with SME’s around here for guidance in improving the rules, and we’d love to open a dialog with you as well.

Thanks

Dave Lee
Chart Advisor from Microsoft Office Labs
Developer


Comment from Dave Lee
Time: Friday, August 29, 2008, 11:40 am

VBA vs .NET
This project began as a generic analysis core, with data sources and a custom presentation layer. We developed it in .NET C#, with Excel as the first target. VBA is great, but obviously with this approach, VBA wasn’t an option for us.

VSTO 2008 has made deployment much easier than the VSTO 2005 release. However, we stuck with the 2005 release to allow the broadest number of people to use our prototype. We had some hiccups in our deployment, but it seems to be ironed out now.

Thanks

Dave Lee
Chart Advisor from Microsoft Office Labs
Developer


Comment from Jon Peltier
Time: Friday, August 29, 2008, 1:48 pm

Hi Dave -

Thanks for the insights into your rules database. The number of lines doesn’t scare me, just figuring out syntax and so forth might be a challenge. Looking it over will allow me some understanding of your thought processes and how you chose to implement certain rules.

I understand that development works in funny ways, and that in the Chart Advisor, Excel is the recipient of code originally not intended for Excel. The initial hiccups lead to an underwhelming first impression. My second impression was that the utility was pretty solid, and that I’d have more issues with your rules and their implementations than in the way the utility actually works.


Pingback from Dynamic Diagrams : Information Design Watch : Microsoft Chart Advisor—Consider the Source
Time: Monday, November 3, 2008, 4:51 pm

[...] Tim Mays reported that Chart Advisor ignored a whole column of source data and then (not surprisingly) recommended the wrong chart type. Excel guru Jon Peltier didn’t even get that far. [...]

Write a comment

I welcome comments from my readers. If you have an opinion on this post, if you have a question or if there is anything to add, I want to hear from you. Whether you agree or disagree, please join the discussion.

If you want to include an image in your comment, post it on your own site or on one of the many free image sharing sites, and include a link in your comment. I'll download your image and insert the necessary html to display the image inline.

Read the PTS Blog Comment Policy.





Subscribe without commenting

PTS Waterfall Chart Utility PTS Cluster-Stack Column Chart Utility PTS Box and Whisker Chart Utility PTS Marimekko Chart Utility PTS Dot Plot Utility PTS Cascade Chart Utility

Create Excel dashboards quickly with Plug-N-Play reports.