Developing a data visualisation style

This is the first in a series of posts charting the design choices, open source tools and analytical workflows that the Trafford Data Lab are adopting.

The Trafford Data Lab supports decision-making in Trafford, a local authority in Greater Manchester, by revealing patterns in data through visualisation. It is committed to publishing open data and using open source tools to encourage a transparent and reproducible analytical workflow.

Why develop a style?

Overall the charts are more harmonious. They look like a family. Each with different quirks, but similar genetic makeup. (Cesal, 2017)

Media outlets, governments and other organisations produce charts and graphs that follow in-house design standards to ensure a consistency of output that is instantly recognisable to audiences. For example, charts produced by FiveThirtyEight use the Atlas Grotesk typeface, have light grey backgrounds, short headline grabbing titles, and footers containing the logo and the data source. Even when you scroll through 52 of their ‘best and weirdest charts’ you know that they were all produced by FiveThirtyEight because they conform to a style.

Style guides

For example, charts created by The Economist conform to a style guide that requires the adoption of the ITC Officina Sans typeface, a colour palette of neutral greys and blues and a filled red rectangle that stands in for The Economist logo. However, they also have short and occasionally amusing left-aligned titles with descriptive subtitles, thick white horizontal major gridlines, and y-axis labels on the right. The Economist use these design elements to forge a signature style that ensures charts are recognisably created by The Economist even when reproduced elsewhere.

Other data visualisation styles guides include those published by the UK Government’s Office for National Statistics, ProPublica, and the Sunlight Foundation.

Style templates

FiveThirtyEight use the open-source R language to create a style template for their graphical outputs. Using the ggplot2 graphics package, they have developed a custom FiveThirtyEight ‘theme’ to style their charts (Flowers, 2016). The UK Government have also published a ggplot2 govstyle theme to ensure that their charts retain a consistent style.

(Free)styling with R

Putting a theme together typically involves overriding an existing theme like the default theme_grey() …

and tweaking non-data elements like the background,

axis tick marks,

grid lines,

plot title and axis labels.

Once you are happy with your modifications you can save them as a theme object that you can apply to all of your chart outputs.

Our `theme_lab()`

The code for our ggplot2 theme can be found in a repository on our GitHub site. Feel free to adapt our modifcations and design plots in your own style!

Written by Henry Partridge, Manager of the Trafford Data Lab


Flowers, Andrew. ‘FiveThirtyEight’s Data Journalism Workflow with R’, useR! 2016 international R User conference, 15 June 2016.

Wickham, Hadley. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2016.

Supporting decision-making in Trafford by revealing patterns in data through visualisation.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store