Joy of six: Gapminder, Tableau style

As soon as I got my hands on Tableau v6, the first thing that came to mind was Gapminder. Those new shiny features meant it would be possible to recreate the amazing Trendalyzer software in Tableau. Here’s how I did:

To do the viz, I took advantage of lots of the new features, many of which I have already blogged about.

Data Blending

There are 9 connections required to show the viz above:

Okay, I acknowledge that that is not a shade on Gapminder’s 250+ datasets. But, hey, I’m not Google, you know! Tableau coped well with 9 datasets. What was difficult was reshaping the Gapminder data in Excel in order to get the best out of it in Tableau. Don’t know about Reshaping? Then you need the Tableau Reshaper add-in


There are lots of parameters in this viz. Mostly, I used them to enable the user to choose which Dimensions/Measures to display on the viz. You can read about how to do that in my earlier Joy of 6: user-built views post.

Page controls

At last, the Page Filter grew up. A valuable but neglected feature in previous versions, it’s been beefed up enormously this time around. The viz takes full advantage of Page filters and the ability to Show History. Click on a mark in the viz to see how it’s changed.

The single, pretty major issue is that on a Server or Public view, you don’t get a Play button. Given the architecture of the Tableau Server, this makes perfect sense: it is simply not possible to get data from the server to the client quick enough to work. You need to download the workbook to see the playback controls. This is a shame, as it’s a cool feature.

Tabbed views

My favourite “easy-win” from the new features is the ability to use tabbed views to create an About Box (read the blog post about this). In this viz, it allows me to create links to the source and other places, and add context to the viz. Without the About Box, I would either have to miss those out, or use up valuable screen real estate on the viz itself.


This project was not without challenges…

Gapminder data interpolates

On the Gapminder site, if a data point is missing, it interpolates the value. That makes for a nice smooth animation on their website. Unfortunately, Tableau cannot invent data in that way. See those lines through the circles in the image above? That’s where Gapminder interpolated in order to make a smooth interpolation.

Log and linear

Gapminder automatically switches between log and lin axis scales. This is really nice, as it removes the burden from the user, and makes everything fit properly. Alas, no such feature in Tableau as yet. I wouldn’t even expect Tableau to implement this – it’s a very niche feature.

Annotations: two problems.

See the light-grey label showing Year that appears on the chart itself? In Gapminder, that label fits the whole chart. in Tableau, area annotations are at the front, so if you try to recreate labels as large as they are in Gapminder, the obscure the data points. But that wasn’t the biggest issue. Oh no. The area annotation is specific to the Dimension being selected. Therefore, I needed to add a separate annotation for every single X-Y axis combination. That was pretty tedious…

Some Gapminder data is just plain wierd

I had to pick and choose the data I used for this viz. In some cases there were too many missing data points. And in others, the values just don’t seem credible. For example, if you choose the CO2 emissions Dimension, well, I just don’t believe those values.


This has been a pretty challenging viz to get right. Having a defined end-goal (Gapminder) to try and hit isn’t the normal way of developing in Tableau. It’s better to explore the data, find the story, and tidy things up when you get to wherever you’ve got to. Forcing Tableau to be like something else is trickier.

Tableau isn’t optimized as well as Gapminder. Tableau can’t match Gapminder for smoothness of animation or flexibility of showing the different data. But that’s not really what Tableau is trying to do. It does everything it needs to do in this project just fine. Most of your business applications will be simpler than this. I think the end result above is great. It was a great way to explore the new features.

I hope you enjoyed the project, too. This is the end of my Joy of 6 posts – click here to read the rest.