Monday, February 1, 2010

Sparklines (2)

Last September I wrote here about sparklines, their uses and the upcoming implementation in Excel 2010. By now I've had the chance to try out the sparkline functionality in the Office 2010 preview release and I'm pretty positive about the experience.

I downloaded a set of daily averaged exchange rate data for the last three months. This gives me a table with 279 data points (most are hidden in the example below for readability's sake), all of which are decimals with tiny variations. Not very readable, then, and certainly difficult to interpret without careful study. If I add three sparklines though, I have an instant, in-context overview of the general trends: it's clear that the Euro has taken a significant fall in value in the past three months.

The value of these small but intensely data-rich graphs should be clear (though if you're still not convinced I'd urge you to read Prof. Tufte's writings on the subject), but how does the Microsoft implementation stack up?

Firstly, it's extremely simple to use, more so than the regular Excel charting tools. The presentation options are necessarily much more limited, but there's a choice of three formats (line, as shown here, column, and win-loss) and lowest and highest points can be highlighted. I've done so in this example, with a green dot showing the minimum data point and a red dot indicating the maximum value. Resizing the sparkline cell resizes the graph automatically, and it's easy to change colours and the likes.

There are some minus points too, though. It appears to be impossible to combine sparklines in a cell, so you can't have lines from two different data sets overlaid on each other, or show (for instance) expected or normal values/value ranges together with the sparkline. I had expected that saving a sparklined workbook in Excel 97-2003 (.xls) format wouldn't preserve the sparkline, but I was surprised when I opened a sparklined workbook in Excel 2007. The .xlsx file format hasn't changed, so I figured that my sparklines might be saved as images, or displayed as miniature line charts, but instead the cells just showed up blank.

I'm not sure if this behaviour will also show up in the final release, but it would be a real shame if one couldn't share sparklined workbooks with Office 2007 users. That apart, it's a very creditable effort from Microsoft and a valuable addition to the Excel toolbox.

Labels: , ,

Tuesday, September 1, 2009

Sparklines in Excel

You could be forgiven for thinking that a book entitled "The Visual Display of Quantitative Information" promises little in the way of entertainment if you're not familiar with Professor Edward Tufte's groundbreaking work in information design. Nothing could be further from the truth, though: this and all of Professor Tufte's books are classic studies in the history and principles of data presentation, the sort of books that reward the patience and attention of the layman just as much as the professional.

One of the most interesting concepts presented by Professor Tufte is that of sparklines; small, data-rich graphs displayed inline and in the context of documents and information graphics, providing a quick but detailed overview of trends and comparisons in data. A more complete explanation and some examples are presented on his website.

The concept has been around for some years by now, and you see sparklines popping up in all sorts of information displays recently, but support in software applications has been patchy, at best, meaning that it's relatively troublesome to create sparklines for your own data.

The best solution up to now, for my money, has been SparkMaker from the German firm Bissantz. This is an Excel add-in and it works beautifully, but is relatively expensive and suffers from the important limitation that, as a third-party add-in, it's not standard, so sharing sparklined files or working on multiple computers causes problems.

Microsoft have seen the light, however: Excel 2010 is going to offer native support for sparklines, which has to be the best improvement in some years to the unfairly neglected charting functionality. As far as I'm concerned, if the Microsoft implementation works well then it's reason enough on its own to upgrade. I hope that it's supported by the SQL 2008 R2 Reporting Services charting controls, too - imagine the level of detail you can add to performance reports if that's the case...

Labels: , , ,

Friday, March 13, 2009

The foothills of Kilimanjaro

Up to Noordwijkwerhout today for the Microsoft Application Platform Congress, during which Microsoft and its partners outlined their vision for the current and next generation of tools and technologies developers and solution providers will use to create and provide applications for customers.

Sometimes these events can be a little wearisome, if truth be told, but today's session was fascinating. We got a look at some of the features of the next version of SQL Server, code-named Kilimanjaro. It's tightly integrated with Excel in a way that Microsoft have been promising for years now but have never quite seemed to deliver. Today, though, we saw a 20-million row Excel table populated from SQL and sorted and auto-filtered in the blink of an eye. The new BI features include a sort of pivot table on steroids, with the ability to slice up and drill down in every conceivable way. Possibly the most impressive thing was that this was all taking place natively in Excel, just running in memory, but a button-click revealed the star schema thus created, ready for saving out to SQL Analysis Services.

They also talked about support for databases of 150 terabytes, if you can imagine such a thing, and how one goes about making such a database perform. It's hard to have patience with slow-performing apps and queries on 5 Gb datasets once you've seen 150 terabytes of data return a result set in a few seconds.

This is a little in the future, for now - release is scheduled for early next year - but my personal epiphany concerned a feature available right now in SQL Server 2008: spatial data. After the demo I saw today, I suddenly realise the potential of this feature and can't wait to put it to good use.

Labels: , , , , ,