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

Study methods

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

Effective Data Visualization

Speaker 1Speaker 2

Effective Data Visualization

15:55
0:00-15:55
  1. Anna

    Today we’re talking about effective data visualization, drawing on the work of Dr. Eric Monson, a data visualization specialist at Duke University’s Center for Data and Visualization Sciences. He teaches visual design and communication to scientists and helps humanists use technology in their scholarship. His background spans physics and collaboration with people in fields from mathematics and computational biology to art history.

  2. Simon

    And the central idea is broader than simply choosing a chart type. Visualization is about communicating data—and, especially, telling a story with it. Monson defines data visualization broadly as turning data sources into visual representations. That includes familiar charts and maps, but even a table is a visualization.

  3. Anna

    So why not just use tables for everything? A famous example called Anscombe’s quartet makes the answer clear. It contains four sets of X-and-Y data with the same X averages, the same Y averages, and the same correlations. Looking only at those summary statistics makes the sets seem alike.

  4. Simon

    But when you plot the values, the patterns are strikingly different. One set looks like noisy points around a line; another is clearly curved; a third is a tight line with an outlier; and the fourth has a pattern that could signal a problem with the equipment that produced it. The plot lets us notice those differences immediately, even though the summary statistics match.

  5. Anna

    That shows why visualization can help at several stages of research. It can reveal patterns, suggest what kind of analysis might make sense, or help communicate findings once you already understand them. The purpose we’re focusing on today is that last one: helping an audience understand what matters in your data.

  6. Simon

    To make a chart, we rely on visual attributes that our brains notice very quickly—things like orientation, length, width, size, shape, color, and spatial position. A line that differs in length can already feel like the beginning of a bar chart. But putting too many attributes together can make a figure confusing rather than informative.

  7. Anna

    Exactly. A chart with a jumble of colors and shapes can make it hard to pick out any pattern. A better approach is often to use just a few visual attributes for a clear purpose—for example, spatial position to show values and color to highlight one important part of the data.

  8. Simon

    And different visual encodings are not equally good for comparing values. For magnitude, people are especially good at judging position along a shared scale, and at comparing lengths that begin at the same baseline. We’re less precise with area, color brightness, and saturation.

  9. Anna

    For categories, spatial grouping is effective, and distinct hues can work too. Shape can be less effective for making comparisons. That’s one reason familiar chart types are useful starting points: they tend to rely on comparisons our eyes handle well.

  10. Simon

    For categories paired with numbers, a bar chart is a good place to start. If you have dates or times and values, a line chart often makes sense because a connecting line suggests something is happening between the measured points. With two numerical variables—especially if you’re interested in their relationship—a scatter plot is a natural starting point.

  11. Anna

    There’s an important scale detail with those choices. Bar charts should generally start at zero, because we judge the bars by comparing their lengths. With line charts and scatter plots, you don’t necessarily need to show a scale starting at zero; zooming in on the data range can help reveal variation or allow several categories to be compared.

  12. Simon

    Even the simplest chart usually tells just one straightforward story. Real research data can support several possible interpretations, so a figure is more like a paragraph than a single word: it takes work for an audience to make sense of it. The designer needs to decide which comparisons matter most and guide people toward them.

  13. Anna

    Let’s see what that means with a small example: five vegetables and ratings or counts related to qualities like being green, yellow, cheap, tasty, or gross. A table is compact and excellent for looking up exact values. It can even make small differences in a column easy to find, but it doesn’t make overall patterns easy to see.

  14. Simon

    A heat map keeps that compact layout but replaces numbers with shades of color. It can be eye-catching, and blocks of light and dark may reveal broad patterns. But people are not especially good at estimating fine numerical differences from color, and nearby colors can affect how bright a patch appears.

  15. Anna

    You can also represent values with the area of squares. That can make patterns across a column stand out, particularly if the colors group the squares visually. But area is not as precise as position or length for comparing values, so it’s less suitable when exact comparisons matter.

  16. Simon

    Pie charts also use area, and they can be fine when there are only a few slices. They become difficult with many slices, and it’s especially hard to compare slices that are close in size. We’re better at judging slices that begin at twelve o’clock, which gives us a common visual reference.

  17. Anna

    There’s also a meaning built into the pie-chart metaphor: slices are parts of a whole. In the vegetable example, the rows don’t all add to the same total, so the pies have different overall areas. If those totals are important, a stacked bar chart can make comparisons of the totals clearer because the bars share a baseline.

  18. Simon

    A stacked bar chart can also make comparisons within one part easier when those values share a baseline. But comparing two segments that start from different baselines is harder—particularly if they’re close in size. If the important question is how the different qualities compare within each vegetable, separate, or faceted, bar charts may work better.

  19. Anna

    Those small-multiple bar charts give each vegetable its own chart, making within-vegetable comparisons easier to see. You can still compare values across vegetables, though that may take more effort. A grouped bar chart puts categories side by side; that’s fine for comparing within each vegetable, but it can be harder to follow one color across all the vegetables.

  20. Simon

    A dot plot is another option: give each vegetable its own position on a shared numerical scale and mark the values with dots. Because dots use position, subtle distinctions—like two similar values—can be easier to see. But with five categories and many colors, the display can feel crowded.

  21. Anna

    Connecting dots can make patterns easier to follow, but use that technique carefully. A line between points can imply that something meaningful exists between the categories. Connecting dates makes sense when time passes between measurements; connecting squash to Brussels sprouts might suggest a progression that isn’t actually there.

  22. Simon

    If the patterns within each category are the main point, small-multiple bar charts can again be a good choice. And if you care about distributions rather than just summary values, show the individual observations—perhaps with dots—or use a box-and-whisker plot to summarize them. In the example, the cheapness values have a tighter distribution than the other qualities.

  23. Anna

    So there isn’t one universally best chart for a dataset. The key decision is which comparisons you want your audience to make. Choose the visual form that makes those comparisons easiest, rather than asking a chart to communicate every possible story at once.

  24. Simon

    Monson offers three broad principles that can take you a long way. The first is to keep it simple. For example, a three-dimensional pie chart may grab attention, but the added depth changes how large the slices appear and distorts the data.

  25. Anna

    The same caution applies to three-dimensional bar charts: perspective makes comparisons and looking up values harder. In most cases, stick to two-dimensional charts. Simplicity also means reducing avoidable mental work—for instance, directly labeling lines or slices when you can, instead of making people repeatedly consult a legend.

  26. Simon

    That’s not just a cosmetic choice. If people have to keep remembering which color means which category while also comparing values, the extra effort can distract them from your message. Software may not make direct labeling easy, but taking the time to do it can make a figure clearer.

  27. Anna

    The second principle is: don’t waste color. If a bar chart already separates categories by position and labels, coloring every bar differently may add nothing. Save a strong color for the part you want people to notice, and use a quieter neutral color—often light gray—for the rest.

  28. Simon

    The third principle is that every figure should have a purpose beyond merely displaying the data. A figure should tell a story or make an argument that contributes to a larger story. That doesn’t mean distorting the data: it means giving people enough context to understand what you’re asking them to notice.

  29. Anna

    Consider a chart of Duke hires by month across several years. If the point is the recurring July peak, simplify the colors, make clear that multiple years are shown, and add an annotation that draws attention to July. A note that hiring peaks at the start of the fiscal year tells viewers why the figure is there.

  30. Simon

    Sorting categories is another way to make a pattern easier to see. Software often puts categories in alphabetical order, which is useful for finding an item in a long list but may make a bar chart’s values jump up and down. Sorting bars by their values can reveal the pattern and provide a ranking.

  31. Anna

    That principle applies beyond obvious cases. An identifier such as a patient ID may have no meaningful relationship to the data, so sorting by it may not reveal anything. But do preserve a natural order when one exists; the point is to choose an ordering that helps people understand the information.

  32. Simon

    Tables deserve the same care as charts. Fully justified text can create awkward gaps that make it harder to read, so left alignment is usually better. Centering can be fine sometimes, but several lines of centered text can be harder to follow because each line starts in a different place.

  33. Anna

    And don’t let grid lines overwhelm the contents. People notice strong horizontal and vertical lines, but the values inside the cells are usually the important information. Use visual hierarchy: remove grid lines you don’t need, make necessary lines quieter, and use differences in brightness or boldness to distinguish the most important information.

  34. Simon

    You can also make patterns in a table visual with conditional formatting, such as shading cells or adding bars. Annotations can explain what a reader should take from it. A large table dropped onto a poster without guidance can become a sea of gray, so tell people why it’s there and what matters.

  35. Anna

    Sometimes one figure simply can’t tell every story. Monson points to a New York Times graphic about jobs after the 2008 recession. The original display, with many lines across industries, was too cluttered to explain all the patterns at once.

  36. Simon

    Instead, the presentation used multiple views. It kept the axes and all the data, but faded much of the information to light gray and emphasized selected lines with color and annotations. Separate views could then highlight different patterns, such as those in the medical and housing industries.

  37. Anna

    That’s a useful reminder: if you have several messages, you may need several figures. Keeping some information in the background provides context, while changing emphasis and adding annotations helps the audience focus on one story at a time.

  38. Simon

    Color choices need care too. Very bright, saturated colors can be uncomfortable to look at, and pure red, green, and blue are not equally bright to the eye. More muted colors can be easier to view and can keep a poster or chart from becoming visually harsh.

  39. Anna

    For categories without a natural order—names or kinds of fruit, for example—use distinct colors rather than a light-to-dark ramp. A ramp makes more sense for ordered values, such as years or days of the week. And if a category keeps appearing across figures, try to keep its color consistent so viewers don’t have to relearn the key.

  40. Simon

    Rainbow color maps are a particular problem when mapping numbers to colors. Their sequence doesn’t have an intuitive order in the way that light-to-dark values do, and the shifts in hue can make smoothly varying data look striped. Those apparent stripes may change how viewers interpret the pattern.

  41. Anna

    For design colors beyond the data itself, Monson recommends looking to designers and institutional style guides rather than choosing from an unlimited palette. Duke’s branding guide, for instance, provides both emphasis colors and more muted colors. A smaller, coordinated set can make choices easier and keep the design consistent.

  42. Simon

    Text is another part of visualization that can either help or slow people down. Diagonal or vertical labels take more effort to read and can make it unclear which label goes with which bar. For long category names, a horizontal bar chart often makes the labels easier to follow.

  43. Anna

    And don’t assume that copying statistical software output communicates a result. Model output is not automatically a story; you need to find a clear way to summarize and visualize what matters. A good figure should be as self-explanatory as possible, especially because figures are often among the first things people notice.

  44. Simon

    That means using human-readable labels, spelling out abbreviations when needed, and avoiding jargon that people outside your specialty may not know. Think carefully about decimal places too. A comparison like 25 percent versus 36 percent can be easier to grasp than 24.46 percent versus 35.87 percent, even if those extra digits are statistically meaningful.

  45. Anna

    Titles can guide the audience before they even inspect the marks. Instead of a title that merely lists what’s plotted, use one that states the main finding—provided the data support it. ‘Accuracy improved by color, not by shape,’ for example, gives a viewer a clear question to test against the figure.

  46. Simon

    And that’s the balance throughout: make the story easy to find without hiding or distorting evidence. Use the title, labels, annotations, ordering, and color to direct attention, then let the audience judge whether the data support the argument.

  47. Anna

    One final practical point: the Center for Data and Visualization Sciences supports more than visualization. Its team helps people find public data, learn some data science skills such as R and Python, and work with geographic information systems and mapping.

  48. Simon

    The center also has data-management specialists who can help throughout the research process—from data-management plans and collaboration practices to backups and sharing data in ways that meet funder requirements or help researchers receive credit. For visualization, Monson consults on data structure, tools, troubleshooting, chart choices, and design.

  49. Anna

    They offer workshops each semester and have recordings of past workshops online. The source gives the website as Library.Duke.edu/data, with a workshops tab and an online-learning section. It also gives a shared contact address: askdata@Duke.edu.

  50. Simon

    So the main lesson is to begin with the comparison you want people to make, choose visual encodings they can judge well, and remove distractions that compete with the message. Then use clear labels, thoughtful color, and annotations to make the figure’s purpose visible. A strong visualization doesn’t just show data—it helps people understand what the data are saying.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent