Skip main navigation

Choose the right visualization

There are so many different visualizations how do we know which are appropriate? In this article, Jeremy Singer shows how to choose sensibly.
Students in a class in university
© University of Glasgow

There is a massive range of visualization techniques. Information visualization is a complete academic field in itself. In this short course, we will introduce a few straightforward visualization techniques and describe when it is appropriate to use each of them.

If you are looking at a continuous variable, like temperature, that changes over time, then a time series graph is ideal. Time is plotted on x, with the continuous value on y. It is a two-dimensional line graph.

Example time series graph

If you are looking at the relationship between two categorical variables, like hair colour and eye colour, then a contingency table may be suitable. Row headings are for distinct values from one categorical variable, and column headings are for distinct values from the other categorical variable. Each cell in the table has a count, which records the number of observations where the two categorical values occur together.

Example contingency table

For charting two continuous variables, such as age vs height, you might consider a scatter plot. One variable goes on each of axis. You can draw a best-fit line if a clear linear relationship is apparent.

Example scatter plot

There are several choices for visualizating the relationship between a numerical variable and a categorical variable. For instance, you might use a bar chart to plot the number of universities in each Scottish city. Do larger cities have more universities? Generally the categorical variable goes on the x axis and the numerical variable goes on the y axis.

Example bar chart

More information-rich visualizations include the box-and-whisker plot, which records the spread of the distribution in each category. For instance, consider the distributions of student exam marks for different subjects.

Example box-and-whisker plot

There are plenty of other options. Geo-spatial data might be visualized with a heat map, e.g. median wage in different council wards. Connected elements might be linked with lines of different thicknesses, e.g. strength of friendship graphs on social media.

Is there a systematic way of selecting the best technique for visualizating a data set? It’s certainly an imprecise science, but some organizations have tried to come up with sensible taxonomies.

  • The Financial Times has a visual vocabulary to assist journalists in selecting the best visualization for their stories.
  • There is a periodic table of visualizations, although this classification is highly subjective.

Do you use these or other visualization techniques with school-age learners? Which data visualizations are easier for learners to understand?

© University of Glasgow
This article is from the free online

Getting Started with Teaching Data Science in Schools

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education