Lecture 6 - Data Visualization
Lecture 6 - Data Visualization
2
Visualization Books
3
What is data visualization
4
Importance of data visualization
Interactive data visualization refers to the use of software that enables direct
actions to modify elements on a graphical plot.
Intuitive refers to the use of data visualization in order to interoperate the data and
find useful insights.
Easy to Share refers to the ability to share the work internally or externally.
5
Why visualize data – Example 1
6
Why visualize data – Example 1
7
Why visualize data – Example 2
8
Why visualize data – Example 2
9
Five Qualities of Great Visualizations
1. Truthful
2. Functional
3. Beautiful
4. Insightful
5. Enlightening
10
Truthful
11
Truthful
12
Truthful
13
Functional
Any visible
drawbacks?
14
Functional
15
Beautiful
16
Beautiful
17
Beautiful
What about
this example?
18
Beautiful
Improvement of the
previous graph.
19
Insightful
The purpose of visualization is insight, not pictures – Stuart Card “Reading in Information
Visualization”
Check the next link and find any insights you can:
https://www.scientificamerican.com/article/how-nations-fare-in-phds-by-sex-interactive/
20
Enlightening
21
PARC design guidelines
22
Example: Oslo Public Transportation
A hard task.
What do you
notice when you
see the lines?
23
Proximity
Minas Morgul What is important here
(788) 444-2233
and where is the
Sauron the Great address?
Mordor
MR 2667
Grouping the
address information Sauron the Great
makes this easier to
read. Minas Morgul
(788) 444-2233
Mordor MR 2667
24
Proximity
LINKS TO IMAGES Links to Images Grouping related
House items can help
HOUSE Tree improve lists.
TREE
Capitalizing all text
LINKS TO ESSAYS
Links to Essays
Building doesn’t usually help
Botany readability.
BUILDING
BOTANY
25
Proximity
More things to try:
Make sure headlines are closer to the related text than to the text or graphics above
them.
Ensure any hierarchy between the items on the page is represented in their spatial
arrangement.
26
Alignment
Line things up with each other.
Choose one alignment and use it for the whole page.
While you are doing this try and keep text away from the edge of the
page to reduce the number of difficult to read long, long lines.
Here are
some examples:
27
Alignment
Alignment means
Home Home
introducing the same text
alignment, e.g. flush left,
for everything on the
About Us page. About Us
28
Alignment - horizontal
Home Contact
Events
About Us Us
29
Alignment – centred
Home
Centred alignment Home
can be a problem
because it introduces Email
Email an invisible line down
Browse
Browse the centre of objects.
Search
Search Visually it can be
stronger to flush left
Software
Software or right and makes The Basics
The the link between
Support
Basics items clearer down
the resulting vertical
Support line.
30
Alignment
Turn table borders off and improve the text alignment.
Red Green
Blue Orange It can often look better and be easier to read.
Red Green
Blue Orange
Pink Yellow
Violet Indigo
31
Repetition
Repeating elements tie together all parts of a web site.
It should be clear that all the pages belong to the same site simply by looking at
them.
Repeating navigation buttons on every page is one example and means visitors do
not need to learn their way around again on every page they visit.
Extend this and consciously push further to create a visual key that ties your
design together.
32
Repetition
33
Repetition
34
Contrast
Contrast draws your eye to something.
35
Contrast
Create a focal point on a page with the other elements related to it in a hierarchy.
A focal point can be created using contrast.
Simple example is to use font size to make the most important item stand out.
36
Contrast and Repetition
37
Contrast and Repetition
Similar lines in the left table, intentional or a mistake?
Contrasting lines in
the right table seem
clearer.
38
Moving along with the visuals…..
What stands out?
Popout is an important
characteristic of the visual system.
40
What stands out?
The brain detects some features more
easily than others.
41
Do all differences work?
42
Can we learn and do this better?
43
Can we combine cues?
Find the three green squares!
44
Can we combine cues?
These seven symbols are designed to
be independently searchable.
45
Most distinct 48 colours in the survey
There is a case these could be the most
reliably identifiable colours.
https://blog.xkcd.com/2010/05/03/color-
surveyresults/
46
Sequential colour palettes
L varies
L and S vary
H, L and S vary
You can vary one or more of the HLS components to get a sequential palette, good for
quantitative data.
47
Colour palettes
These have a neutral value in the middle of the palette and diverge in each direction,
good for quantitative data.
48
Colour blindness
49
Factfullness
What should we do in Data Science to be more ethical?
One person who thought about this in detail was Hans Rosling. Factfullness is his response
to this question, as a set of ten recommendations for Data Scientists (and indeed everyone)
about using and presenting facts.
https://www.youtube.com/watch?v=usdJgEwMinM
50
The Gap
Where is the gap.
Beware of averages.
Beware extremes.
51
Negativity
Negative news is news.
52
Don’t assume straight lines
Straight lines are rare.
53
Manage fears
Understand real risks
54
Size
Recognize impressive numbers and check them.
55
Generalization
Question categories.
56
Destiny
Things appear constant because change happens
slowly.
57
Have more than one perspective
Test ideas.
Limited expertise.
58
Beware blame
Identify scapegoats, resist blaming an individual.
59
Resist Urgency
Decisions are rarely urgent.
60
Trust in data visualization
Trying to generate more trust may be counterproductive.
https://www.ted.com/talks/onora_o_neill_what_we_don_t_understand_about_trust
?language=en
61
Storytelling
Creating a narrative : Aristotle introduced this structure in Poetics in the 4th Century BC.
Let the data tell the story. If there are human characters in the story are they a main or a
secondary element?
Very often the characters we present will be abstract entities described by data.
Even so the same rules of story will help you engage and inform your audience.
http://www.sheilacurranbernard.com/documentary-storytelling.html
62
Narrative Structure
Constructing a data story (Knaflic):
Act 1: set the context, main (data) character(s) and the questions that will be answered.
Act 2: what is the data, what are the possible conclusions, what are the difficult questions.
63
Legal argumentation
What would a reasonable person think?
State the general rule you will use to support your conclusion.
64
Answer these
Who?
What?
How?
Action
3-minute story
Storyboarding
Graphs
66
Use text
67
Remove what you do not need
68
Make it obvious
69
Make it obvious
70
Lines can be helpful
71
Avoid pies
72
Avoid pies
73
Avoid 3D
74
Be careful with colours
75
Avoid secondary y-axis
76
Avoid secondary y-axis
Plot your uncertainty
Clean your visualization
79
Remove chart border
80
Remove gridlines
81
Remove data markers
Clean up axis labels
83
Label data directly
84
Leverage consistent color
85
Final comparison
Before After
86
The whole picture – Dashboard Example 1
87
The whole picture – Dashboard Example 2
88
Remember
Be consistent.
Have a layout.
89
Thanks for watching!
Questions?