
Renewable Data Visualisations
As with many of my blogposts here, this one opens with a tweet, since it was the starting point in this exercise for me. Cole Knaflic commented upon Jon Schwabish’s reworking of a Eurostat chart showing progress of European nations against their renewable energy targets for the year 2020.
Looks great! I like target lines. Would you consider reverse ordering with lowest at top? I like that from reading-left-to-right standpoint. https://t.co/r8RyCKkz2O
— Cole Knaflic (@storywithdata) August 30, 2017
Attempts by @jschwabish and me to improve an EU chart. Play along at https://t.co/m6YIqiZGcQ pic.twitter.com/cX7t3jbdFR
— Chad Skelton (@chadskelton) August 31, 2017
Here’s the full view of Jon’s interpretation:
To show those nations which had already achieved their targets, I took a combined approach – darker grey both on the line connecting the dots and also the text label, and a lighter for those who still had some way to go. Shading the bars differently was the easy part – Charlie Hutcheson recently put together an excellent blog post on connected dot plots using Gantt bars which I would recommend anyone use as a resource and see no point repeating. The only extra bit I employed to colour the bars was to create a boolean measure to identify whether the 2020 target had been exceeded by the 2015 value, and then place this on colour:
And here’s the outcome – darker grey bars where the rightmost circle mark (for 2015) exceeds the vertical bar mark (for 2020 target).
The challenge I had, however, was repeating the exercise with the labels. I knew that I wanted to create two alternative ‘Nation’ dimensions, one each for those nations that had and hadn’t already exceeded their targets, place them both on Label and colour them in the Label text accordingly. My original approach was to use the same boolean measure but this failed since I was comparing aggregated and non-aggregated fields:
A little research led me to the solution, though – using an LOD calculation on that same boolean measure, and then pointing my two alternative dimensions at that:
The last element was adding both of these into the label, which I placed on the horizontal bar (rather than one of the circle marks), aligned to the left and used a sneaky trick to add a little spacing after the label to prevent it from overlapping with the first circle. To do this I added a full stop and coloured it white, as shown:
The result is my iteration upon Jon’s work, as shown below, and also available to download from Tableau Public. In addition to the colour-coding I also placed the nations in ascending order and changed the connecting horizontal bars to only join the 2004 and 2015 values and not also to the target value as Jon had. To my mind this helped to show the progress of each nation and also so that the target values stood out effectively for each of the nations yet to get there.
I’d love to see any further iterations on my work, and I’m sure that Jon would too – he invites anyone to do so and feed back on his blog.
Featured image originally by Chris Lim, used under the Creative Commons licence.