Intelligence Data Styleguide v2 0
Intelligence Data Styleguide v2 0
Intelligence Data Styleguide v2 0
Within the City Intelligence Unit at City Hall, we work on a diverse range of For every chart or graphic you design, you have to make the decisions
data visualisation and information design projects. These projects range about adding, removing or highlighting elements, and these guidelines are
from static presentations, simple chart publishing, interactive visualisation here to help that decision-making process.
applications and both simple and more complex web mapping applications.
This guide has evolved out of documenting principles & styles that have The code is more what you'd call "guidelines" than actual
worked across those projects so far, in order to keep our work consistent. rules. Welcome aboard the Black Pearl, Miss Turner.
- Captain Barbossa, Pirates of the Caribbean1
Now seemed like a good time to share these simple principles so far, to help
us all think about how we present data, and as handy guide if you are looking
for answers to your own chart design challenges. Guidelines are just a guide, and not rules to be dogmatically followed.
This is an ongoing, evolving work in progress, that will expand, shift and You should make a conscious decision about the charts types you choose,
change format as we tackle more projects, and see what does & doesn’t the data you use, and the elements you add or remove to highlight the data.
work. So, if you have any thoughts or feedback on the guide so far, then do
get in touch: mike.brondbjerg@london.gov.uk
CHART DESIGN
Maximizing the Data-Ink Ratio
CHART DESIGN Edward Tufte has an interesting approach to reducing visual clutter, and
PRINCIPLES focusing only on elements that “show the data”.
Within data visualisation, “Less, but better” means removing unnecessary Edward Tufte’s Five “Laws” of Data-Ink:
visual clutter, but keeping, improving and highlighting only elements that 1. Above all else show the data.
reinforce or illustrate the point we are trying to make with the data…. 2. Maximize the data-ink ratio.
Because a chart isn’t the data, it’s an opinion about (or at least a narrow view 3. Erase non-data ink.
of) the data. 4. Erase redundant data-ink.
5. Revise and edit.
The same principle can be applied to the editorial content surrounding and
contextualising our charts too.
This chart needs some work
CHART DESIGN DATA A
1,000
DATA B DATA C
800
700
Value of something
600
500
400
Minimal gridlines & tick marks Remove decoration and effects 300
Use as few gridlines and ticks as is Get rid of any unnecessary key lines 200
necessary to understand the range around shapes, drop shadows and 100
as possible, gives you space to grey lines for this contextual data
£0
accentuate important points on the allows to better highlight with 2008 2015 2018 2023 2028
axis or in the data. meaningful colour later.
Only use dots & marks on Say what you see
CHART DESIGN important data points Help the reader by titling the chart
• First & last values with a description of what you want
PRACTICAL STEPS • Interesting events them to see in the graphic. Use
• Show where there are few, or colour to connect body copy in
Practical steps to highlight the data or message inconsistent data points. your document to data points in
your chart.
Focus Show key points on the axis
Focus ranges to show data most Highlight key dates or values on the The value of A is projected to fall, but then recover
clearly. Only if doing so doesn’t axis. Consider only including the A longer more detailed descripition of the context and methodology behind
remove important context. date ticks on your axis that are the projection that A, will fall but eventually rise again.
relevant to the chart.
£900 Projected
Use colour or line weight
Highlight the important data with Highlight important thresholds
a consistent / thematic colour, and contextual ranges Data A
£800
and increasing the weight of the Draw attention to important £800
Data A
line thresholds in the range of your data. £765
A descriptive chart title in 18pt Bold #353d42 A descriptive chart title in 18pt Bold #FFFFFF
More detailed explanation matching the document body copy in 14pt More detailed explanation matching the document body copy in 14pt
1pt 1pt
#D8D8D8 #4E5254
4pt dashed 12pt #353D42 4pt dashed 12pt #FFFFFF
2pt 4pt 2pt 4pt
12pt and 10pt 12pt and 10pt
2pt 2pt
#CCCCCC #FFFFFF
12pt 12pt
2pt dashed 2pt dashed
12pt 10pt 12pt 10pt 12pt 12pt 10pt 12pt 10pt 12pt
Source: General chart text in 12pt #666666 Source: General chart text in 12pt #FFFFFF
CHART DESIGN
USING COLOUR
Below are a quick reference to our core categorical colours that have been
developed to extend the LDN Pink and Dark Pink brand colours.
Blue LDN Dk Pink Yellow Red Green Purple Turquoise Pink Orange LDN Pink
LDN Grey LDN Dark LDN Light
Document Document Axis Text Highlighted Chart Chart White Light App
Headlines Body Text & Labels Labels Label Black Label White All colours work on a light background
#ffffff #f5f5f5
255,255,255 245,245,245
While fewer colours are better, we often need numerous categorical colours
on charts and maps. The following colours have been carefully chosen to N Pi
nk* D: R
ed
J: LD
work with LDN Pink and Dark Pink and (unless coloured areas are small) are
discernable by people with most* colour vision deficiancies.
nk
Pi
I: O
Dk
Below are suggested default usage order and possible colour ramps.
ra
n
N
ge
5f5f5
LD
o #f
lighter t
B:
Core categorical colours by default use order
A: Blue "#6da7de", rgb(109,167,222);
Core
B: LDN Dk Pink "#9e0059", rgb(158,0,89); suggested suggested ramp
C: Yellow
H: Pink
C: Yellow "#dee000", rgb(222,224,0); *Avoid categorical end/mid points
D: Red "#d82222", rgb(216,34,34); Together combinations
E: Green* "#5ea15d", rgb(94,161,93);
F: Purple "#943fa6", rgb(148,63,166);
G: Turquoise "#63c5b5", rgb(99,197,181); darker
to #12
H: Pink "#ff38ba", rgb(255,56,186); 1212
E:
ple
I: Orange "#eb861e", rgb(235,134,30);
Gr
ur
ee
P
n*
F:
J: LDN Pink* "#ee266d" rgb(238,38,109); A B C D E* F G H I J* use
order
G: T
Example single hue categorical colour ramp end/mid points: lue
A: B oise
urqu
D
ramps for choropleths are also shown. I J
E
C
H
G
A
A
D
I J
F
BG: Dark Panel "#1b2021", rgb(27,32,33);
Map: LDN Dark "#2a3135" rgb(42,49,53);
B
Some colours don’t contrast well with the “mid” LDN grey background, so
here we have a reduced palette of 6 of our core categorical colours. N Pi
nk
J: LD
I: O
ra
C: Yellow "#dee000", rgb(222,224,0);
gen
o #f 5f5f5
lighter t
E
C: Yellow
categorical end/mid points
combinations
darker
to #12
1212
E:
It looks odd if ramps start darker than this LDN grey BG. Here we have a some
G ree
n
example ramps, starting from a lighter base, as shown in the colour wheel. use
Visit https://gka.github.io/palettes/ to generate your own steps order
G: T
lue urqu
A: B oise
A: Blue 37485b, 6da7de, c3d5ec
C: Yellow 5d5b1f, dee000, f5f0ce
E: Green 3f633e, 5ea15d, d8e4d6
G: Turquoise 33534d, 63c5b5, a2d9ce
I: Orange 8e541f, eb861e, fadfcb
J: LDN Pink bd2a59, ee266d, fad2d8
Darker, less contrasting categorical colour palette
CHART DESIGN
DARKER CATEGORICAL COLOUR PALETTE
The core categorical colours (above) work well with the GLA brand mayoral
& pink and used as key colours they are great. However, as a group they are D: R
ed
quite bright and saturated, so here we have a set of less saturated, less
contrasting, darker variations. As a consequence we have fewer categorical
H:
nt
colours to use, but still enough for most projects.
O
ge
ra
Ma
gen
o #f5f5f5
B:
lighter t
Dark (lower contrast) categorical colours by default use order
A: Blue: "#3681bf", rgb(54,129,191);
B: Magenta "#89105d", rgb(137,16,93); Darker / lower
C: Yellow
contrast suggested ramp
C: Yellow "#d3c913", rgb(211,201,19); end/mid points
categorical
D: Red "#af2828", rgb(175,40,40); combinations
E: Green "#73a072", rgb(115,160,114);
F: Turquoise "#56b2a1", rgb(86,178,161);
G: Purple "#884299", rgb(136,66,153); darker
to #12
1212
H: Orange "#b76325" rgb(183,99,37);
A B C D E F G H
ple
E:
Gr
ur
ee
:P
n
G
use
Example single hue categorical colour ramp end/mid points: order
Visit https://gka.github.io/palettes/ to generate your own steps lue
A: B ise
F: Tu
rquo
here we show all 8 darker categorical colours together on a map. They work H
G
on both light and dark basemaps or application canvases. A couple of A
D
colour ramps for choropleths are also shown.
F
E
C
H
G
A
F
BG: Dark Panel "#1b2021", rgb(27,32,33);
Map: LDN Dark "#2a3135" rgb(42,49,53);
B
Some colours don’t contrast well with the “mid” LDN grey background, but
with the darker/less contrasting set we can still use 7 colours. D: R
ed
H:
raO
C: Yellow "#d3c913", rgb(211,201,19);
n
f5
o #f5f5
ge
lighter t
E
Darker / lower
G: Purple "#884299", rgb(136,66,153);
F
suggested ramp
C: Yellow
contrast
H: Orange "#b76325" rgb(183,99,37); categorical end/mid points
combinations
*Avoid red unless needed on this LDN BG
darker
to #12
1212
ple
E:
It looks odd if ramps start darker than this LDN grey BG. Here we have a some
Gr
ur
ee
:P
n
G
example ramps, starting from a lighter base, as shown in the colour wheel. use
Visit https://gka.github.io/palettes/ to generate your own steps order
F: Tu
lue rquo
A: B ise
A: Blue: 2e5174, 3681bf, d3ddea
C: Yellow 59541e, d3c913, f2eccc
D: Red af2828, eecdc8
E: Green 374636, 73a072, dae3d9
F: Turquoise 2f4d46, 56b2a1, b9dad3
G: Purple 6f397b, 884299, e0d1e3
H: Orange 714120, b76325, eed7c9
Lighter, less contrasting categorical colour palette
CHART DESIGN
LIGHTER CATEGORICAL COLOUR PALETTE
The core categorical colours (above) work well with the GLA brand mayoral
& pink and used as key colours they are great. However, as a group they are D: R
ed
quite bright and saturated, so as well as they darker, less saturated set, we
have also created this reduced, lighter, less saturated, less contrasting
G:
palette of 7 colours.
raO
n
f5f5
ge
o #f5
lighter t
Light (lower contrast) Categorical colours by default use order
A: Blue "#7ab5e5", rgb(122,181,229);
Lighter / lower
B: Purple "#964a92", rgb(150,74,146); contrast suggested ramp
C: Yellow
B: Purple
C: Yellow "#ddd82c", rgb(221,216,44); categorical end/mid points
D: Red "#d84545", rgb(216,69,69); combinations
E: Green "#65aa63", rgb(101,170,99);
F: Turquoise "#49bf9a", rgb(73,191,154);
G: Orange "#d6793a" rgb(214,121,58); darker
to #12
1212
A B C D E F G
:G E
re
n e
use
Example single hue categorical colour ramp end/mid points: order
Visit https://gka.github.io/palettes/ to generate your own steps lue
A: B ise
F: Tu
rquo
here we show all 7 lighter categorical colours together on a map. They work G
D
colour ramps for choropleths are also shown.
F
E
C
G
A
F
BG: Dark Panel "#1b2021", rgb(27,32,33);
Map: LDN Dark "#2a3135" rgb(42,49,53);
B
All 7 of these lighter, less saturated, lower contrast colours work with LDN
grey background. D: R
ed
G:
raO
B: Purple "#964a92", rgb(150,74,146);
n
5f5f5
ge
o #f
lighter t
E
Lighter / lower
F: Turquoise "#49bf9a", rgb(73,191,154); F
contrast suggested ramp
C: Yellow
B: Purple
G: Orange "#d6793a" rgb(214,121,58); B categorical end/mid points
combinations
darker
to #12
1212
E:
It looks odd if ramps start darker than this LDN grey BG. Here we have a some
G ree
n
example ramps, starting from a lighter base, as shown in the colour wheel. use
Visit https://gka.github.io/palettes/ to generate your own steps order
F: Tu
lue rquo
A: B ise
A: Blue 3b4d5d, 7ab5e5, dee8f2
B: Purple 793f76, 964a92, e3d2e0
C: Yellow 5c5923, ddd82c, f4efcf
D: Red ad3d3a, d84545, f6d4cf
E: Green 334a31, 65aa63, d9e6d7
F: Turquoise 2c5043, 49bf9a, d5ebe2
G: Orange 824d2b, d6793a, f4dcce
There are many different types of colour impairment that affect people’s
CHART DESIGN ability to differentiate colour, in lesser or greater amounts. Also, everyone
struggles to differentiate visually similar colours on bad screens, in difficult
FIND & TEST YOUR OWN COLOUR VARIATIONS environments, and if used on very fine lines or text.
Our three colour palettes have been developed to work in various contexts, Viz Palette
with the GLA/MOL brand & (if used sparingly) will be accessible to most https://projects.susielu.com/viz-palette
people in most applications. This is a great tool that helps check and emulate a colour palette for
different colour impairments.
However, you will inevitably need a different colour or shade at some point.
You could combine colours or shades from within these palettes,
or pick your own.
Either way you will need to test that there is good visual separation between
categorical colours to make them as clear and accessible to as many
people as possible.
Here we’ll show you some tools to help you do just that!
So, we should make sure that if we are using certain colours together, we
should ensure our lines are not too fine, and (as mentioned above) avoid the
LDN Pink with this green if possible. You can also use the HSL controls to shift around the Hue spectrum and
make finer adjustments to your Saturation and Lightness.
Remember, we shouldn’t rely
on colour alone, particularly It’s useful to imagine the HSL colour model as
when using more than around a cylinder. Move around the perimeter for
5 colours. different Hues on the colour spectrum, away
from the center for saturation (amount of
We can use other methods colour) and vertically for lightness.
too, like labelling and
Image credit:
interactivity, to help users https://commons.wikimedia.org/wiki/File:HSL_color_solid_cylinder_saturation_gray.png
navigate and decode
the data.
Chroma.js Colour Scale Helper
CHART DESIGN https://gka.github.io/palettes/
You will inevitably need to create your own colour scales at some point for a
CREATE YOUR OWN COLOUR SCALES choropleth map or some continuous data. This tool (developed by Gregor
Aisch, and also built into Datawrapper.de) can help you create single and
A bit of background on colour scales multi-hued, sequential and diverging scales are that are perceptually
Creating Single Hue colour scales (one hue, moving from lighter to darker) is correct.
fairly simple (though errors can occur), but creating multi-hued scales
(moving from one hue to another) can create real problems, because not all It helps adjust a scale’s brightness, avoids colour kinks that occur when you
colours across the specturm are perceived equally. interpolate across the spectrum and let’s choose your step count.
Looking at this rainbow scale, we can see there are brighter and darker
areas, and places where the colour seems to change faster than others.
This it makes it hard to read and perceive value correctly.
Rainbow: X
This issue has been addressed recently and researchers have developed a
more perceptually uniform set of scales known as the Viridis Scales:
Viridis:
Magma:
Plasma:
Inferno:
Cividis:
CREATE YOUR OWN COLOUR SCALES Also the dark step at D-4 is (we judge) probably a bit too dark to be useful,
so we want to run our scale from D-3, smoothly through our core red, and
Chroma.js colour scales (continued) D-5 D+5
then too D+4, the lightest shade.
D-4 D+4
In our colour wheels you can see we have the core D-3 D+3 Remember, on screen, the dark shades will be harder to see on a white
categorical colours, but also suggestions of darker D-2 D+2 background so think about the context your colours will be seen in.
and lighter shades from which you can start and end D-1 D+1
D: #af2828
D-3 #4e201b D+4 #eecdc8
D-5 #121212 D-4 D-3 D-2 D-1 D: #af2828 D+1 D+2 D+3 D+4 D+5 #f5f5f5
DIVERGING COLOUR SCALES Red - Blue: Left: d57f73,af2828, 333333 Right: 333333,3681bf,8eaed5
Diverging scales with Chroma.js Red - Yellow: Left: d57f73,af2828, 333333 Right: 333333, d3c913, ded153
https://gka.github.io/palettes/#diverging
Chroma.js tool can also help you generate diverging scales. Here we have Red - Green*: Left: d57f73,af2828,333333 Right: 333333, 73a072, 8cb08b
created a few for you as a starting point, but you can of course adjust them
to your required number of steps and endpoints. *With caution
*With caution
Projectors
CHART DESIGN Just like monitors, some projectors are better than others. Some meeting
rooms are brighter than others too. Check that your projector is using the
OTHER COLOUR CONSIDERATIONS correct colour mode, and not changing your colours, but also think about
your data colours.
Colour in your presentation context
• Bright rooms make light colours hard to see
We also need to consider the context in which our graphics are going to be • Increasing contrast in your presentation will help
displayed. Think about who is viewing your graphic and how? • The neon pink can sometimes appear indistinct on thin lines if used on
a darker background.
• Will it be printed to make notes on in a meeting?
• Will you be presenting in a brightly lit room with a poor projector? Subject & cultural considerations
• Not all monitors are equal… lighter greys and washed out colours can The core colour palettes are a suggested first place to look for your colours,
be hard to see on some monitors. but of course sometimes they won’t be appropriate.
• Will the audience need to be able understand the colour quickly and
without labelling? If you are presenting data of a sensitive nature, then a bright, saturated
• Think about accessibility and use distinct colours. colour palette may well not be appropriate. Perhaps think about using the
Larger blocks of colour can also help those with colour blindness darker less saturated palette (above).
perceive the colour better.
EXAMPLES 80%
UK
Standard line chart variations Mar - May 2018:
75.7%
Key features of this chart:
75%
• To focus on the detail of the data, we have NOT started the Y-Axis at
zero. To highlight this, we have removed the strong baseline. We have
also shown the vertical gridlines extending beyond the horizontal grid,
70% London
to imply that the range continues beyond our current view. Mar - May 2018:
• London data highlighted by use of thematic colour and UK shown in 74.7%
• As the data is quite granular and detailed, we must reduce the default
line weight to 2pt, so as not to obscure any detail.
• We needed to include months as well as years on the X-Axis, which
60%
meant reducing the default axis text from 20pt to 16pt.
Mar-May Apr-Jun Apr-Jun Apr-Jun Apr-Jun Apr-Jun Apr-Jun Apr-Jun Apr-Jun Mar-May
1992 1995 1998 2001 2004 2007 2010 2013 2016 2018
• Always start bar Y-Axis at zero, and indicate with a strong baseline. 40% 40%
Source: Department for Education / data.london.gov.uk/economic-fairness/ Source: London Measured Report (Sep 2018)
Stacked bars (for proportions of total)
CHART DESIGN Key features of this chart:
Total UK
Population
EXAMPLES Barnet
379,806
Newham
Choropleth maps 334,269
4% 7%
Custom charts like these are created by generating simpler visualisations
4% 50% 10% with tools like D3 and or Datawrapper, outputting as PDF/SVG and then
enhancing and adapting the graphic in Adobe Illustrator.
Poorest
References:
Can we aim to produce more of our work as “digital first”?
Producing content for the web, simplifies navigation issues, helps keep 1. Captain Barbossa - Pirates of the Caribbean
- https://www.imdb.com/title/tt0325980/
chart and document text consistent, makes labelling more dynamic, charts
2. Data Visualisation by Andy Kirk
more accessible and creates opportunity for richer, deeper, personalised - http://www.visualisingdata.com/book/
interaction and discovery. It also allows content to be kept up to date, eases 3. Dieter Rams – 10 Principles of good design
- https://en.wikipedia.org/wiki/Dieter_Rams
sharing an extends the reach of content.
4. The Visual Display of Quantitative Information - Edward Tufte
- https://www.edwardtufte.com/tufte/books_vdqi
If we can better define who our users are, what they need, and work on 5. Dr. Emmett Brown – Back to the Future
tools, platforms & training to support easier web publishing, perhaps we can - https://www.imdb.com/title/tt0088763/
Light BG Light Chart BG Light BG Light BG Dark BG Dark Chart BG Dark BG Dark BG
A Chart Title Context Data Highlight Area Strong Grid Light Grid Context Data Highlight Area Strong Grid Light Grid
Focus 40%
37%
1939 #666666 #353d42 #000000
#353d42 #666666 #ffffff
53,61,66 102,102,102 102,102,102 53,61,66 0,0,0 255,255,255
Comparison
Dark App Dark Panel LDN Grey LDN Dark LDN Light White Light App
Part of a whole (not comparison)
0% 50% Something 68% 100%
#121516 #1b2021 #353d42 #2a3135 #868b8e #ffffff #f5f5f5
80% 18,21,22 27,32,33 53,61,66 42,49,53 134,139,142 255,255,255 245,245,245
68%
lighter grey Base for web Web app UI London.gov.uk London.gov.uk London.gov.uk Printed page Light base for
applications panels style panels dark UI light UI and simple app web apps