Archive for category Xcelsius

The book on sparklines

sparkline

Sparklines, a term coined by Edward Tufte, are becoming increasingly popular in Business Intelligence software.  Some applications, like Excel (through various add-ins) and QlikView (starting in version 9.0), have the ability to make them, out of the box, while they can be created elsewhere, like Xcelsius, with a bit of creativity.

You’ve likely seen them before, but do you know when it is appropriate to use them?  They’re not to be thrown around just because all of the cool data visualization kids are using them.

The background, from Wikipedia:

The term ‘Sparkline’ was proposed by Edward Tufte for “small, high resolution graphics embedded in a context of words, numbers, images.” Tufte describes sparklines as “data-intense, design-simple, word-sized graphics“. Whereas the typical chart is designed to show as much data as possible, and is set off from the flow of text, sparklines are intended to be succinct, memorable, and located where they are discussed.

The clearest and most instructive examples, not surprisingly, can be found in one of Tufte’s books, Beautiful Evidence.

tufte-sparkline

Pictured components

  • Line representing the last n data points
  • Data point for most recent reading highlighted in red
  • Value of most recent reading in corresponding red type
  • Name of metric
  • Acceptable/normal range as gray, shaded area

Another example of his incorporates lows and highs over the period represented:

high-low

(Note that, while the horizontal axis is not labeled, the 12 months header indicates the time period being displayed.)

There isn’t a single pixel wasted on meaningless or redundant data, embodying Tufte’s data-ink ratio.  Another way in which he is practicing what he preaches is that all of the data related to each metric is in close proximity, not requiring repeated references to scattered information.  Of course, those are Tufte’s specs, and different BI companies and the people who have created custom sparkline components may choose to implement them differently.

If you’re looking for guidance on the best way to apply them in your applications, I like how Stephen Few succinctly puts it: “Think of them as an enhanced, much more informative substitute for the trend arrows that often appear on dashboards.”

For only marginally more space than a trend marker, sparklines provide significantly more information and paint a more complete picture than simple up/down or green/red indicators.  The lack of context surrounding trend indicators leaves open the possibility that a positive indicator represents a minuscule uptick at the end of a significant and long-term drop.  In other words, when you look at your dashboard for the day and see a green, up arrow for margin %, that means margin % has improved in the most recent period, while it could still be down for the week, month, quarter, or year (Few explains something similar on page 140 of Information Dashboard Design).

While the line obviously represents some period of time, the horizontal, dimensional axis is not labeled.  In fact, neither axis is.  The reason is that sparklines are meant to show trends and comparisons, not detailed values, like standard line graphs.  This helps explain why they are not a substitute for the standard line graph, which can more easily compare multiple dimensions or multiple measures with greater precision.

And don’t forget that the line chart is but one type of sparkline.  This image from Juice Analytics shows a catalog of examples from one Excel add-in (some of which are at least mildly objectionable, in my opinion):

sparklinegallery

Finally, see this thread on Edward Tufte’s message board for the single longest conversation about sparklines since the dawn of time.

  • Share/Save/Bookmark

No Comments

How to reduce “glitz” in Xcelsius

xcelsius-replica

I thought this thread was too valuable to remain buried on the Perceptual Edge message board.  “Candy-like” is the adjective I often use to describe shiny, round, three-dimensional-looking dashboard components, and Xcelsius is incredibly candy-like if you don’t make the effort to create a clean, professional dashboard.  Even the samples on the SAP website are enough to offend anyone’s Tuftean sensibilities, also frequently lacking the appropriate data context required for quick analysis.

Here are some takeaways from the thread:

  • Apply a skin like Halo or Windows Classic instead of the default, Aqua (you can permanently change your default theme under File, Preferences, Document)
  • Remove gridlines when not they’re not necessary, e.g. when the purpose of a chart is to provide relative comparisons, not quantitative precision
  • Show limits on circular, horizontal, and vertical gauges; show targets when feasible, e.g. when target locations will be static, not moving with scaling axes
  • You can create sparklines with tiny line graphs with all labels, axes, etc. disabled
  • Create multiple bullet charts with a stacked bar chart (targets) overlaid with a bar chart (actual), provided that they share a scale, which works best with percentages

bulletexample

And a few things I would add that were not mentioned in the thread:

  • Left-align titles and subtitles
  • Subtitles, help text, and axes should be a lighter shade than the axis labels, dimension labels, and data itself
  • There is a free add-on for Xcelsius 2008 that allows you to create basic bullet charts and sparklines without employing workarounds (scroll to bottom of linked page)

While on his site, I also noticed that Stephen Few has a new book coming out June 1.  Preorder!

  • Share/Save/Bookmark

3 Comments

Xcelsius fun: Critical Response to the Artistic Photograph

From the Joe Lipka Photography page:

The Flash plugin is required to view this object.


“Critical responses” are produced at the click of a button through an Xcelsius-generated Flash file.  How is this accomplished?

  • The source spreadsheet has five lists of sentence fragments that are concatenated into a single pretentious statement.
  • Recalculation of the spreadsheet is driven by the value of 10 - the number of possible sentence fragments - being inserted into cell B2 every time the Generate button is clicked.
  • Each list has its own expression using the random function in row 5, generating a number between 0 and 1 to be multiplied by the contents of cell B2 and rounded up to the next whole number, producing an integer between 1 and 10.
  • Those integers are then referenced in LOOKUP expressions in row 6 to retrieve sentence fragments with the corresponding indices
  • Finally, the sentence fragments returned by the LOOKUPs are assembled for display in cell B3.

What other applications could you build in Xcelsius with similar logic? A flashcard-like aid for studying or learning a new language, perhaps.  The SWF could even be embedded in a web page for the benefit of classmates.


Labyrinth Triptych 42 by Joe Lipka, currently hanging in my hallway at home

  • Share/Save/Bookmark

No Comments