1. Home
  2. Explore
  3. Computer Science
  4. Data Visualization Basics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Data Visualization Basics

šŸ“Š Data Visualization for Data Analysts

What Is Data Visualization?

Data visualization is the graphic representation and presentation of data — putting information into an image to make it easier for others to understand. Any map, whether paper or online, demonstrates how helpful visuals can be for conveying complex information at a glance.

Data visualization: The graphic representation and presentation of data that makes information easier to understand through visual form.

A Brief History of Data Visualization

Data visualization began long before the digital age, starting with maps, which are visual representations of geographic data. A map of the known world from 1502 represents an early example. Mapmakers improved their visualizations as new lands were charted, new data was collected, and new methods for visualizing data were developed.

Scientists and mathematicians embraced visual data arrangement in the 1700s and 1800s. A bar graph from 1821 looks remarkably similar to modern bar graphs. Since the beginning of the digital age of Data Analytics in the 1990s, the scope and reach of visualizations have grown alongside the data they represent. As communication through visuals improves, the quality of insights continues to grow.

The Role of Visualization for Analysts

An analyst typically splits their time with data visuals in two ways:

  • Looking at visuals to understand and draw conclusions about data

  • Creating visuals from raw data to tell a story

Data visualizations are the key to success, especially when presenting analysis results to an audience. A well-made visualization can change people's minds and help someone without the same technical background form their own opinions.


The 5-Second Rule

The 5-Second Rule: An audience should know exactly what they are looking at within the first five seconds of seeing a visualization. Within the next five seconds, they should understand the conclusion the visualization is making, even if they are unfamiliar with the underlying research.

The visual should be clear and easy to follow. If the audience does not agree with the conclusion, that is acceptable — their feedback can be used to adjust the visualization and return to the data for further analysis.


Four Key Elements of a Successful Data Visualization

Created by data journalist David McCandless, this framework arranges four elements in a Venn diagram, showing that all four are needed for successful visualization:

šŸ“Œ The Information (Data)

The data itself is the key building block for any visualization. Everything in the analysis depends on having quality, relevant data.

šŸ“Œ The Story (Concept)

The story adds meaning to the data and makes it interesting. Combined with the data, the story provides an outline of what the visualization is trying to show.

šŸ“Œ The Goal (Function)

The goal makes the data both useful and usable. It answers the question of why the visualization exists and what it should accomplish.

šŸ“Œ The Visual Form

The visual form creates both beauty and structure. It is the actual graphical presentation that makes the data accessible.

Why All Four Elements Matter

  • Two elements: Can create a rough sketch, useful at early stages, but incomplete

  • Three elements: Gets closer but still not finished — for example, information + goal + visual form without story creates a fine-looking but uninteresting visual

  • All four elements combined: Creates a truly powerful and effective visualization that is meaningful for the audience


Types of Data Visualizations

Bar Graphs

Bar graphs use size contrast to compare two or more values.

  • X-axis: The horizontal line at the bottom, representing categories, time periods, or other variables

  • Y-axis: The vertical line on the left, usually with a scale of values for the variables

Bar graphs are excellent for clarifying trends. For example, comparing time of day to motivation level shows clearly when motivation is low versus high.

Line Graphs

Line graphs help audiences understand shifts or changes in data. They are usually used to track changes through a period of time but can be paired with other factors. Using different line colors allows viewers to immediately compare trends — such as dogs versus cats in popularity over time.

Pie Charts

Pie charts show how much each part of something makes up the whole. Each part of the circle should reflect its percentage of the whole, which equals 100%. A quick scan reveals which activities take up significant time versus which take up less.

Maps

Maps organize data geographically and can hold a lot of location-based information. With well-defined borderlines and color coding, audiences can interpret the data quickly — for example, survey data about happiness across European countries.


Avoiding Misleading Visualizations

Data visualization can be manipulated, most commonly through scaling and proportions. It is essential to create visuals that are clear and easy to understand, but never at the expense of communicating ideas that are true to the data.

Misleading Pie Charts

A misleading pie chart might have:

  • Slices representing more than one option

  • Segments adding up to well over 100%

  • Ingredients listed below the image not included in the visual data

  • All segments the same size despite showing different values

If a visualization looks confusing, it probably is confusing.

Truncated Bar Charts (Y-Axis Manipulation)

In a truncated bar chart, the values on the y-axis do not start at zero. For example, data points starting at 9,100 with intervals of 100 make differences look dramatic. When the y-axis is adjusted to start at zero, the differences appear much less drastic.

Some platforms always start their y-axis at zero, but other programs (like spreadsheets) might not fix the y-axis. Analysts must keep this in mind when creating visualizations and follow the conventions of data analysis to avoid misleading presentations.


What Visualizations Can Reveal

Change Over Time

If analysis involves how data has changed over days, weeks, months, or years, the visualization can be set to show only the relevant time period. Interactive features can adjust the view from daily to weekly or monthly changes.

Distribution

A histogram resembles a bar graph but shows how often data values fall into certain ranges. Each bar (called a bin or bucket) contains a certain number of values that fall into one small part of the range. Narrow ranges and appropriate bin sizes make histograms effective for understanding data distribution.

Ranking

When ordering data — such as number of responses to survey questions — horizontal bar charts are effective. Bars should be arranged in ascending or descending order by value, unless there is a natural order to the data (like age or time).

Correlation vs. Causation

Causation: A cause-effect relationship that occurs when an action directly leads to an outcome. Correlation: An association between two variables.

Correlation charts should be used with caution because they might lead viewers to think data shows causation when it does not. Humans like to find patterns even when they do not exist, so two variables that look associated may be completely independent.

A correlation chart that does show causation can be effective — for example, search traffic data in Brazil dropping during a football match implies causation because football is a popular sport that directly affects search behavior.


Static vs. Dynamic Visualizations

Static Visualizations

Static visualizations do not change over time unless they are edited. They are useful when the analyst wants to control the data and the data story. Any visualization printed on paper is automatically static. Charts and graphs created in spreadsheets are often static, requiring manual data changes to update.

Dynamic Visualizations

Dynamic visualizations are interactive or change over time. Users have some control over what they see, which is helpful when stakeholders want to adjust their view.

Tableau is a business intelligence and analytics platform that helps people see, understand, and make decisions with data. Visualizations in Tableau are automatically interactive. Interactive features might include:

  • A year-to-view slider allowing users to choose which year's scores to display

  • Color scales (blue for highest, red for lowest) that update as the user adjusts controls

  • Automatic data updates by minute, second, day, week, or month for real-time trends

Finding the Balance

The more power given to the user, the less control the analyst has over the story the data tells. Finding the right balance between interactivity and control depends on:

  • The data being visualized

  • The audience being presented to

  • How the presentation is being delivered


Elements of Art in Data Visualization

Data analysts and artists both use elements of art in their work. Five key elements that add value to data visualizations are: line, shape, color, space, and movement.

Line

Lines can be curved or straight, thick or thin, vertical, horizontal, or diagonal. They add visual form to data and help build the structure for the visualization. Combo charts and line charts show the variety lines can bring.

Shape

Shapes in visualizations should always be two-dimensional, as three-dimensional objects can complicate the visual and confuse the audience. Shapes add eye-catching contrast, especially size contrast. Symmetrical shapes are usually more familiar to people, requiring less work from the audience. However, asymmetrical shapes (like country borders on a map) are instantly recognizable and effective.

Color

Colors can be described by three properties:

  • Hue: The name of the color (red, green, blue)

  • Intensity: How bright or dull a color is

  • Value: How light or dark a color is (indicates how much light is being reflected)

Shades are dark values with black added. Tints are light values with white added. Varying color value is an effective way to draw attention to specific areas in a visualization.

Space

Space is the area between, around, and in objects. There should always be space in data visualizations — just not too much or too little. For example, the space between bars in a bar graph should be smaller than the width of the bars themselves, drawing attention to the data rather than the empty space.

Movement

Movement creates a sense of flow or action in a visualization. Interactive visualizations like "The Wealth and Health of Nations" trace elements over time, revealing multiple stories from the same data. Movement should be used sparingly — there is a fine line between attracting attention and distracting the audience.


Choosing the Right Visualization

No matter how complex the analysis, the audience only cares about what is in front of them and how easily they can understand it. The best chart depends on the needs of the industry, company, and stakeholders.

For Comparing Data Over Time

  • Line graphs

  • Bar graphs

  • Stacked bar graphs

  • Area charts

For Comparing Distinct Objects

  • Ordered bar graphs

  • Grouped bar graphs

  • Ordered column charts

For Showing Parts of a Whole (Data Composition)

  • Stacked bars

  • Donut charts

  • Stacked areas

  • Pie charts

  • Tree maps

For Showing Relationships

  • Scatterplots

  • Bubble charts

  • Column-line charts

  • Heat maps

For example, a scatterplot showing health versus happiness reveals a strong relationship: as life expectancy increases, happiness scores also tend to increase.


Three Essential Elements of Effective Visuals

Visual journalist Dona Wong proposes that effective visuals have three essential elements:

1. Clear Meaning

Good visualizations clearly communicate their intended insight. The audience should immediately understand what the data is showing.

2. Sophisticated Use of Contrast

Contrast helps separate the most important data from the rest, using visual contexts that the brain naturally looks for.

3. Refined Execution

Attention to detail using visual elements — lines, shapes, colors, value, space, and movement — creates a polished, professional result.

The first rule of business is to satisfy the customer. With data analytics, the audience (managers and stakeholders) should always come first when creating data visualizations.


Design Thinking for Data Visualizations

Design thinking is a process used to solve complex problems in a user-centric way. It involves challenging one's own thinking and exploring different approaches to problems and solutions.

Example: Airbnb

When Airbnb was not generating desired revenue, data analysis alone was not enough. The company looked at their product through the customer's eyes and realized the photos of listings were not very good. They hired a photographer to take professional photos of New York City listings. In one week, those listings saw two to three times more bookings, and revenue nearly doubled.

Five Phases of Design Thinking

1ļøāƒ£ Empathize

Think about the emotions and needs of the target audience. Avoid areas where people might face obstacles interacting with the visualization. For example:

  • Adjusting colors that might be too bright or dramatic for serious data

  • Ensuring sufficient contrast for people with color vision deficiencies

  • Providing verbal explanations for team members with vision impairments

2ļøāƒ£ Define

Define the audience's needs, problems, and insights. Use what was learned in the empathize phase to spell out exactly what the audience needs. Consider different audiences — medical professionals versus patients — and adjust visualizations to meet each group's needs.

3ļøāƒ£ Ideate

Generate data visualization ideas using findings from the empathize and define phases. Create drafts with different color combinations and shapes. The key is to always remember the audience when brainstorming.

4ļøāƒ£ Prototype

Start putting charts, dashboards, or other visualizations together. Create multiple visualizations to choose which best meets the objective.

5ļøāƒ£ Test

Show visualizations to team members before presenting to stakeholders. Share all options and listen to feedback. Critiques — both your own and others' — are key to keeping focus on the audience by integrating new ideas into the final product.

These phases do not have to follow a set order. They are an overview of actions that help produce a user-centered design.


Headlines, Subtitles, and Labels

Adding descriptive wording helps the audience interpret and understand data correctly.

Headlines

A headline is a line of words printed in large letters at the top of the visualization to communicate what data is being presented. It is the attention grabber. Best practices:

  • Use clear, concise language

  • Explain all information plainly

  • Avoid abbreviations and acronyms

  • Make it bold or a few sizes larger than other text

  • Place it directly above the chart, aligned to the left

Subtitles

A subtitle supports the headline by adding more context and description. Use a font style that matches the rest of the chart's elements and place it directly underneath the headline.

Labels vs. Legends

Dona Wong makes a strong case for using labels directly on the data instead of relying on legends. A legend (or key) identifies the meaning of various elements but forces the audience to do more work because it is positioned away from the chart's data. Direct labeling keeps the audience's attention on the graphic and helps identify data quickly.

The more support provided to the audience, the less work they have to do understanding what the data says, and the faster the story makes an impact.


Accessibility in Data Visualization

Over one billion people in the world have a disability — more than the combined populations of the United States, Canada, France, Italy, Japan, Mexico, and Brazil. People take in information in many different ways:

  • A viewer who is deaf or hard of hearing relies on captions

  • Someone who is colorblind looks to specific labeling for more description

Strategies for Accessible Visualizations

Label data directly instead of relying exclusively on legends, which require color interpretation and more effort. This makes the visualization faster to read for everyone.

Provide text alternatives so content can be changed into other forms people need — large print, Braille, or speech. Alternative text provides a textual alternative to nontext content, allowing the content and function of the image to be accessible to those with visual or certain cognitive disabilities.

Make data available in text-based formats through export to spreadsheets (sheets or Excel).

Separate foreground from background using bright colors that contrast against the background to help those with poor visibility.

Avoid relying solely on color to convey information — instead, distinguish with different textures and shapes.

Avoid overcomplicating data visualizations. Breaking data into simple visualizations is key. Too much information in a single piece, long chunks of text, or overcrowded graphs and charts defeat the purpose of the visualization.

Designing with an accessibility mindset means thinking about the audience ahead of time, focusing on simple, easy-to-understand visuals, and creating alternative ways for audiences to access and interact with data.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent