Skip to content

12 Data Visualization

Motivation

Data visualization transform complex data sets into visual formats, making patterns, trends, and outliers easier to understand.

  • Faster comprehension of data compared to raw data analysis.
  • Summarize large amounts of data concisely.
  • Identifing trends and correlations within the data.
  • More engaging, make better communication of findings to a diverse audience.
  • Clear visuals enable well-informed decision-making.
  • help in identifying errors or inconsistencies in data.
  • Easy to compare different data sets side-by-side to draw meaningful conclusions.
  • Support the data story telling, enhancing the impact and narrative.

Work becomes more productive as a result in the end.

Design Principles

In explanatory data visualization, good design is crucial for effectively communicating data patterns to a broad audience. Visualization uses rules to convert data points into visual properties like bar lengths, dot sizes, and line colors. Concepts like the grid and reading sequence significantly influence design. Following good desgin principles ensures effective data communication.

Graphic design

The chart is made up of several building components, including the data itself, which is shown by lines and dots, several text elements above and below the chart, text elements incorporated into the chart, and supporting chart elements like axes and gridlines.

Source: Maarten Lambrechts, CC BY 4.0
From the annotations on the chart above, you can see how the building blocks of the chart are aligned and how the chart is composed (Source: Maarten Lambrechts, CC BY 4.0)

  • Use a grid to position and size elements.
  • Place the chart title in the top left. Least important info goes in the bottom right.
  • Align axis labels meaningfully both horizontally and vertically.
  • Avoid visible frames, use an invisible grid and boxes when you embed it.
  • Use Break the grid technique to highlight specific data points or outliers.
  • For multiple visualizations, follow the reading sequence from top-left to bottom-right.
Visual hierarchy

Creating a visual hierarchy which guides the reader on what to look at first, what to look at next, and what to look at last. you may make specific aspects in a publication or visualisation stand out more. With regard to that,

  • Position element in the x and y dimensions.
  • Layering elements on top of each other in the z dimension
  • Adjust the size of elements for emphasis.
  • Use colors effectively.
  • Highlight elements by enclosing them.
Size and aspect ratio

Certain chart types tend to grow to a wide layout, while others will quickly evolve to a tall layout. such as vertical bar charts often have a greater width than height, unless they display a limited number of values. Horizontal bar charts often have a taller than broad appearance and rise vertically. Thus,

  • Choose a chart type that best fits the data and message.
  • Use the "banking to 45 degrees" rule for line charts to account for aspect ratio differences.
  • Scale up data marks and font sizes for larger charts; use thicker lines, larger dots, and bigger letters. For smaller charts, scale them down.
  • Bigger charts can hold more data, so adapt by including or excluding data based on chart size.
Numbers and dates

Your visualisations will be more readable if you round the numbers. Round numbers are simpler to read and may often be presented more effectively without compromising precision.

Source: Maarten Lambrechts, CC BY 4.0
The y axis labels have too much precision, and the trailing zeroes should be removed. (Source: Maarten Lambrechts, CC BY 4.0)

  • Use words like million or billion instead of many zeros.
  • Apply SI prefixes (e.g., "k" for thousands, "M" for millions).
  • Use scientific notation, such as 1.3e+6 for 1.3 million.
  • Include signs ("+", "-") to indicate growth.
  • Add units and symbols for values and currencies.
  • Limit date axis labels to 5-10; label every 2-5 years for spans over a decade.
  • Format year labels as (“2018”, “2019”) instead of (“2018/01/01”, “2019/01/01”).
  • Adjust label formatting to avoid overlaps, using abbreviations (e.g., "Jan", "Feb") and shortened years (’18, ‘19) for narrow charts.
  • Use the ISO 8601 standard (YYYY-MM-DD) for dates.
Table design

The fact that tables are far more useful than visualisations for looking up numbers across several dimensions is a popular argument for publishing data as a table. Tables must also be quickly scannable to facilitate effective value searching. This affects their design in a few ways.

  • Use colors to aid in looking up values, not to distract.
  • Align text values left in columns.
  • Align numbers right in columns.
  • Ensure consistent formatting of numbers within a column, including rounding and significant digits.
  • Adjust column widths to fit the data.
  • Balance vertical spacing between text in each row with enough whitespace.
  • Place the main lookup column (text or number) as the first column of the table.

Data Storytelling

Telling data stories and creating captivating data visualizations can be challenging. Much like a popular film or a great book, an effective data story holds viewers' and readers' attention. People relate more to protagonists and characters than to numbers. To achieve this, simplify the viewer's experience. Make it easy for them to understand a chart and its hidden message. Ensure that every component like titles, annotations, chart types works together to minimize the mental effort required to grasp the visualization. Since much data relates to people and their daily lives, forming an engaging connection with the reader is still very possible.

Fry Universe by Chris Williams

This light-hearted visual journey explains how the ratio of fried surface area to un-fried surface area can make for very different eating experiences (fry universe by Chris Williams)


Chart Types

It's important to decide which kind of chart would best convey your data message. There are numerous chart kinds available, and each one emphasizes a distinct feature of your data. Selecting a chart type involves much more than merely skimming at your data's columns to see what kind of information you have on hand. When selecting a chart type, keep in mind the data types, message, data size, audience, and medium. The most popular chart types are:

PitFalls

When creating data visualizations, it's better to be aware of potential pitfalls. These hidden problems can distort the message, confuse viewers, and lead to incorrect conclusions if not carefully addressed. By recognizing these challenges early, you can design clearer and more effective visualizations that accurately communicate your data. Its commonly occur as:

Accessibility

Data visualization maps numbers to visual elements like color, size, and position, making data trends and proportions more accessible. It simplifies understanding numbers, which would otherwise be time-consuming or impossible for some. However, blind individuals and those with partial sight loss (e.g., color blindness, myopia) face challenges. Proper design and tools can help. Understanding visualizations also requires cognitive skills and numeracy. Applying the POUR-CAF principles enhances accessibility for all users.

Data Visualization Apps and Tools

  • Libre Office is a desktop app includes the ability to create and embed charts. Their style, color and size can be customized in a broad variety of ways.
  • Tableau is a Business intelligence (BI tool) desktop app use to manage, analyse and visualise business data. In visualisation they are mainly used to create reports and dashboards.
  • QlikView is a classic guided analytics desktop app solution. QlikView lets you rapidly develop and deliver interactive guided analytics applications and dashboards.
  • QGIS is a mature open source and free desktop app Geographical Information System (GIS). its visualisation and map styling capabilities are extensive.
  • Python packages like Matplotlib, Seaborn and Bokeh are most popular for data visualisation.
  • Highcharts and d3js are JavaScript package for making visualisations in the browser.
  • Plotly is a library to make interactive charts and maps in wide range of programming languages, including Python, R and JavaScript.
  • ggplot2 is a R package dedicated to data visualization. It can greatly improve the quality and aesthetics of your graphic.

Recommendations for a Jump Start

Jump start

Select a chart type for your data
Use apps and tools for visualization.
write a good story of your visualization.