Data Visualization Principles


Data Visualization Principles

Maria
Welcome back. Today we’re talking about data visualization: what it is, why it is useful, how to create it responsibly, and how to evaluate whether it communicates clearly or misleads us.

Hope
And we’re focusing on current thinking rather than spending much time on famous historical examples like John Snow’s cholera map. Data visualization has expanded dramatically with computers and large-scale data collection, and contemporary voices include Edward Tufte, Stephanie Evergreen, Andy Kirk, Cole Nussbaumer Knaflic, and Alberto Cairo.

Maria
So let’s begin with the basic definition. Data visualization is anything that converts a data source into a visual representation, including charts, graphs, and maps.

Hope
But it is more than simply making numbers look attractive. Data visualization is also a rhetorical device: a tool for expressing and supporting an argument. Every visual involves decisions about what to show, what to emphasize, and what to leave out, so clarity, ethics, and rhetoric all shape the final result.

Maria
What are the main reasons we visualize data?

Hope
The first major reason is to see patterns. Anscombe’s quartet is a classic illustration: its four datasets have almost identical summary statistics for the x and y variables, including means, variances, correlations, and linear regressions. Yet when the datasets are visualized, their differences become obvious.

Maria
Visualization is especially useful with large datasets because it compresses a lot of information into a smaller visual space. Patterns that would be difficult to notice in a table can become visible immediately.

Hope
And visualization can also be part of data exploration while you are preparing for analysis. Before creating a final figure, you may use visuals to become familiar with your own data and discover unexpected patterns or problems.

Maria
That brings us to a step people often underestimate: data preparation and cleaning. These tasks frequently take the most time. In one digital humanities project, creating the visualization took about 35 hours, while preparing the data took nearly 260 hours.

Hope
So the polished chart may be the visible part of the process, but the invisible preparation can be much larger. Common problems include data arranged for display or data entry rather than analysis, such as wide data, empty rows, or merged cells.

Maria
Other problems include poor formatting and documentation, unexplained missing data, and extra variables that slow processing or even crash a computer. You may also encounter typos, incorrect information, and missing metadata rules—for example, whether “NYC” and “New York” refer to the same place.

Hope
Consistency matters too. Differences in spacing and capitalization can create separate categories when they should be one. Null values might be represented as 99, NA, or 888, and those codes need to be understood and handled consistently. Dates are another especially difficult issue.

Maria
Many visualization tools expect tidy data, although Excel is an exception in some ways. The larger point is that “trash in, trash out” applies: if the data are missing, inaccurate, or dirty, the visualization can communicate a distorted result.

Hope
The second major reason for visualization is to tell a story. A visual can quickly communicate the shape of a long research process, a major trend, or an important comparison. But because visualizations are still a form of communication, they require time and effort.

Maria
Let’s distinguish two important purposes: exploration and explanation. Exploratory visualizations provide as much information as possible, and they may not have one clear message at the beginning.

Hope
In exploration, the viewer does more of the work. For example, an interactive visualization of Tour de France toughness elements allows viewers to click through different elements, investigate what is present, and develop their own questions.

Maria
Explanatory visualizations work differently. They provide a simpler summary, often by averaging, summing, or otherwise simplifying the data to highlight a trend, an outlier, or another finding.

Hope
A comparison of weekly flu deaths in blue and COVID-19 deaths in red is an example. The purpose is to offer a quick view of how high and how wide the spikes are across different years. The viewer can quickly identify the highest spike, but the visualization is not designed for extensive drilling down.

Maria
A single visualization can combine these purposes. It might explain a trend while still offering details for exploration. Visualizations can also exist to wow or amaze, or to serve as a form of expression.

Hope
The warming stripes design by Edward Hawkins demonstrates that expressive role. It displays rising global temperatures from 1850 to 2018, and the design has become popular on items such as scarves and clothing. Colors, slopes, images, and other visual elements can produce an emotional response and communicate a message almost instantly.

Maria
For this episode, though, our main focus is creating charts and figures to present findings to other people, rather than using visualizations only to explore our own data.

Hope
That communication goal makes visualization inherently rhetorical. We are presenting and often persuading an audience of something. When we show a chart, we are implicitly saying, “I am reliable, I did the research, these are the facts, and you should believe them.” That creates ethical responsibilities.

Maria
Let’s move into chart selection. A bar or column chart shows category values using one numerical variable and one categorical variable. Bar charts are also useful for displaying negative numbers.

Hope
For a basic bar chart, use one color for all the bars unless you have a clustered bar chart that needs multiple colors. Because a bar’s filled-in area represents its value, the axis should always start at zero.

Maria
If the categories have no natural order, sort the bars by size. If they do have an order—such as letter grades—preserve that meaningful order. And if there are too many bars, usually more than five, or the category labels do not fit, turn the visualization sideways rather than rotating the text.

Hope
Line charts are designed to show trends. They usually pair a chronological variable with a numerical variable. The important feature is the size and direction of the slope, so use solid lines and avoid putting more than about four lines on one chart.

Maria
Unlike bar charts, line charts do not have to start at zero. A useful rule of thumb is for the lines to occupy roughly two-thirds of the chart height, leaving about 33 percent of the plot area free beneath a line chart that does not start at zero. But accurate representation of the trend matters more than rigidly following a proportion.

Hope
For example, a change in GPA from 2.5 to 3.0 is only half a point numerically, but it can be a meaningful shift in a person’s GPA. The scale should help viewers see that change rather than make it appear insignificant.

Maria
Scatterplots show relationships between two numerical variables. They are useful during exploration because you can see where all the points fall.

Hope
For an explanatory scatterplot, use color, distinctions, and callouts to guide the viewer’s attention. If you show or imply a trend, the lesson recommends displaying an R-squared value along with the plot, especially when a trend line appears. The stated correlation measure helps communicate how strong the relationship is, with zero indicating no relationship.

Maria
That extra information matters because people are not very good at judging how closely points line up just by looking. The “Guess the Correlation” game is one way to experience how difficult that visual judgment can be.

Hope
Pie charts are often criticized, but they do have a specific use: showing parts of a whole, where the slices add up to 100 percent of the same thing. That phrase—“of the same thing”—is essential. Percentages adding to 100 does not automatically mean they belong in one pie.

Maria
Pies work best when showing one especially large or small category, and they become difficult to read when there are more than about four categories. Order the slices by size so the viewer does not have to do that organizational work.

Hope
A 100 percent stacked bar chart builds on the pie-chart idea. Its categories should also add up to 100 percent of something, but several bars can be placed next to one another to compare proportions. Because it is still a bar chart, its scale should start at zero.

Maria
There are also general design principles. Spell out the point by adding text that states what the viewer should understand. Sort whatever can be sorted, use colors that immediately support the message—green for money is one example—and use visual cues such as hue, shape, alignment, and size.

Hope
Avoid clutter when possible. If you can label data points directly, especially in a bar chart, you may not need a separate legend or many gridlines. Round numbers when decimals or excessive precision make the graphic harder to consume.

Maria
It can also help to summarize comparison data that is not the main focus, usually by summing or averaging it. That reduces the number of lines, bars, chunks, or other features people must compare at once.

Hope
For example, a visualization showing how average influenza epidemic curves shifted during the COVID-19 pandemic might be clearer if all pre-pandemic years were summarized as one line and the pandemic years were shown as another. Another option is to use several small charts, but every chart must use the same x- and y-axis scales so comparisons remain meaningful.

Maria
Design embellishments should not distort the information. Avoid distorted lines and shapes, tilted text, and especially unnecessary 3D effects.

Hope
Three-dimensional graphics can create false hierarchies: foreground graphics look larger, background graphics look smaller, and relationships between data series become skewed. Although 3D can be engaging, it can obstruct information and confuse scale.

Maria
Still, there is no single perfect visualization for every dataset. The best choice depends on what you know about the data and what you are trying to communicate accurately.

Hope
A useful example comes from data journalists at The Economist, who critiqued their own visualizations about whether people felt the Brexit outcome was the right or wrong choice—a topic sometimes called Brexit Remorse, or “Bremorse.” The original line chart displayed every individual average response by collection date.

Maria
In an adapted version, they used a line of best fit. Their reasoning was that the original made opinions appear to move erratically from week to week, while the fitted line communicated the broader pattern. They also added more space at the bottom to follow the roughly 30 percent guideline.

Hope
That example shows why design decisions must be evaluated rather than treated as automatic rules. Removing individual points can make the overall trend clearer, but it can also hide variation. A good designer considers what information the audience needs and what might be lost through simplification.

Maria
Now let’s discuss a central warning: data visualizations are often treated as irrefutable evidence, as if saying, “We have the data, this is what it means, and the discussion is over.” But even convincing data can contain bias and error.

Hope
A visualization is not a truth claim in itself. It is an analytical snapshot created from imperfect data collection, imperfect measures, and imperfect analysis, arranged in a form the human eye can understand.

Maria
Visualization is therefore an act of interpretation. It involves selection, grouping, emphasis, abstraction, and summarization. We should ask what the visual makes easier to see, what it makes harder to see, and what assumptions are built into the representation.

Hope
Consider a visualization showing how gun violence cuts lives short in the United States. We might ask how lifespans were estimated, what biases are built into those estimates, and how effectively the estimates show the impact of gun violence. We should also ask whether reducing lives to a simplified measure leaves out quality of life or reduces individuals to a single number.

Maria
The same critical thinking applies to a bar chart in a state health department report comparing the ten California counties with the most pertussis cases. Raw case counts may seem straightforward, but counties differ greatly in population size.

Hope
Comparing raw counts may therefore be unfair. One improvement is to compare rates, which can change the list of the “top ten” counties substantially. Another approach is to compare highly populated counties with one another, especially if population density or crowding could influence disease spread.

Maria
Neither approach is automatically perfect. Each introduces choices and possible forms of unfairness. But that is precisely why visualization can mislead so easily: people often interpret the finished chart as truth rather than as a constructed comparison.

Hope
Maps are not immune to this problem. Land is not people, so mapping a quantity across geographic areas can create issues similar to comparing raw county totals. A large geographic area does not necessarily represent a large population.

Maria
We also need numerical context. A small percentage of a very large number can still be large, while a large percentage of a small number can still be small. Percentages tend to make more sense when the underlying numbers are larger.

Hope
Context such as statistical significance and correlation information can clarify what is being visualized. Sharing the data openly can clarify it further by allowing others to examine the basis of the visual.

Maria
What about the debate over minimalist design? Many well-known visualization experts recommend reducing visual load—the text, colors, and images that do not contribute to the main message.

Hope
That advice is useful, but research has not shown a clear advantage in every situation. Familiarity matters, and viewers may already understand forms that experts sometimes discourage, such as pie charts or certain 3D designs.

Maria
Meaningful maximalist designs, such as those associated with Nigel Holmes, have also been shown to improve memorability without reducing interpretation accuracy compared with simpler graphics. The effects vary according to the audience and how the visualization will be used.

Hope
So best practices are guides, not unbreakable laws. The unique scenario should determine the balance among simplicity, detail, familiarity, memorability, and accuracy.

Maria
That balance is part of the ethical challenge. Ethical visualization involves more than simply avoiding deception or presenting information honestly. Honesty and complexity involve many considerations, including when and how much complexity an audience needs.

Hope
A responsible process considers every step from collecting the data to producing the visualization. Be clear about uncertainty and error, and communicate missing, inaccurate, or dirty data rather than hiding those limitations.

Maria
Inclusion is another important responsibility. Create multiple versions of the same visual when appropriate, and use text blocks to complement the visual. Text can help people with vision issues, while also supporting people who can see the graphic.

Hope
Pay attention to terminology and language as well. Use person-centered language and consider how your results affect groups, especially marginalized populations.

Maria
Ask what assumptions you are making about those groups, what stereotypes might be reinforced, and how colors or language may simplify people’s lives and identities. Most importantly, ask what the visualization is for and whether it only serves to stigmatize a group.

Hope
Let’s recap. Data visualization converts data into visual form, helps us see patterns, and helps us tell stories. It can support exploration, explanation, emotional expression, or even art, but every visual is also a rhetorical and interpretive act.

Maria
Good practice begins with careful data preparation, continues with a chart type suited to the variables and purpose, and includes clear labeling, meaningful sorting, appropriate scales, useful color, and minimal distortion.

Hope
Critical evaluation means looking for missing context, unfair comparisons, unclear denominators, misleading scales, hidden uncertainty, and unnecessary decoration. It also means remembering that there is no universal perfect design.

Maria
And ethical design means communicating limitations, supporting accessibility, choosing language carefully, and considering the effects on the people represented. The goal is not merely to make a chart attractive or technically correct, but to make a responsible communication choice.

Hope
That gives us a strong starting framework for developing and evaluating visualizations. The next time you see a chart, ask not only, “What does this show?” but also, “How was this constructed, what has been emphasized or omitted, and what am I being asked to believe?”

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