Math & ModelingIntermediateGraph simulation~12 min

Scientific Data Visualization

A good chart can reveal a pattern in seconds; a bad one can hide it or even tell a story that is not true. Take four real-world style datasets, draw them as different kinds of chart, and experiment with the tricks that make charts honest or misleading.

Good chart
Dataset
Chart type

30

How many days, students or people are in the data (not used for monthly rainfall).

1
10
This chart
—
Number of values
—
Average
—
Range
—
Correlation
—
Y-axis
—

How to use this simulator

  1. Choose a dataset. The best chart type for it is selected automatically.
  2. Switch the chart type and read the verdict: why does each chart help or hinder?
  3. Add an outlier and watch how the mean and median react differently.
  4. Turn off Start the y-axis at zero and see how much bigger the differences look.
  5. Change the sample size and noise. How reliable is the trend line and correlation with only a few points?

Why we draw charts

Tables of numbers are precise but hard to read. Our eyes are very good at comparing lengths and positions and at spotting trends, clusters and unusual points. A well-chosen chart turns data into a picture that answers a question at a glance. Scientists, doctors, journalists and governments rely on charts to make decisions, which is why it matters that they are drawn honestly.

Types of data

  • Categorical: named groups, such as favourite fruit or blood group.
  • Numerical (discrete or continuous): counts or measurements, such as test scores or height.
  • Paired data: two measurements for each item, such as temperature and sales on the same day.
  • Time series: measurements taken one after another, such as monthly rainfall.

Choosing the right chart

ChartBest for
Bar chartComparing categories or totals
Line graphChange over time
Scatter graphThe relationship between two numerical variables
HistogramThe distribution of one numerical variable
Pie chartParts of a whole, with only a few categories

Research on how people read charts shows we judge positions and lengths far more accurately than angles or areas, which is why bar charts are usually clearer than pie charts.

Averages, spread and outliers

The mean adds up all values and divides by how many there are; the median is the middle value when they are sorted. An outlier, a value far from the rest, can drag the mean a long way while barely moving the median. That is why house prices and incomes are usually reported as medians. Therange (largest minus smallest) gives a quick sense of spread.

Correlation is not causation

The correlation coefficient r measures how closely paired data follow a straight line, from −1 (perfect negative) through 0 (none) to +1 (perfect positive). A strong correlation does not prove that one thing causes the other. Ice-cream sales correlate with shark attacks because hot weather increases both: aconfounding variable. To show cause and effect, scientists use controlled experiments.

How charts can mislead

  • Truncated axes: starting the y-axis above zero makes small differences look huge.
  • Wrong chart type: joining unrelated points with lines suggests a trend that is not there.
  • Cherry-picking: showing only the time period that supports a claim.
  • Hidden sample size: a dramatic pattern from five people may be pure chance.
  • 3D effects and pie charts distort how big slices and bars appear.

Sample size and noise

Real data always contains random variation, or noise. With a small sample, noise can create or hide patterns by chance; with a larger sample, the true pattern stands out. Try 5 points and then 200 in the simulator and watch how much more stable the trend line and correlation become.

Key terms

Outlier
A value much larger or smaller than the rest of the data.
Trend line (line of best fit)
A straight line that best summarises the relationship in a scatter graph.
Distribution
How values are spread out: where they cluster and how far they range.

Common misconceptions

  • “A strong correlation proves cause.” A third factor may be responsible, or it may be chance.
  • “The mean is always the best average.” With outliers or skewed data, the median is often more representative.
  • “Any chart will do.” The wrong chart can hide the pattern or invent one.

Key takeaways

  • Match the chart to the data: bars for categories, lines for time, scatter for relationships, histograms for distributions.
  • Outliers pull the mean much more than the median.
  • Correlation measures association, not cause.
  • Check axes and sample sizes before trusting a chart.

Model note: the datasets are generated from fixed random seeds with realistic patterns, so every visitor sees the same data for the same settings.

Knowledge check

Scientific Data Visualization: test your understanding

Answer each question to get instant feedback and an explanation. Use the simulator to check your thinking.

8 questions3 basic3 intermediate2 advanced

0 of 8 answered

  1. Q1BasicWhich chart is best for showing how two numerical variables are related, such as temperature and ice-cream sales?
    Show answer

    Answer: B. Scatter graph

    Each point on a scatter graph is one pair of measurements, so you can see whether and how the two variables are related.

  2. Q2BasicWhich chart is most suitable for showing how rainfall changes month by month?
    Show answer

    Answer: A. Line graph

    Line graphs show change over time; the slope between points shows rises and falls. A bar chart also works.

  3. Q3BasicWhat does a histogram show?
    Show answer

    Answer: B. How often values fall into each range (the distribution of one numerical variable)

    Histograms group numerical data into bins with no gaps between bars, revealing the shape, centre and spread of the data.

  4. Q4IntermediateIn the simulator, turn off “Start the y-axis at zero” on the rainfall bar chart. What happens?
    Show answer

    Answer: B. Differences between months look much bigger than they really are

    A truncated axis exaggerates differences. It is a common way charts mislead, deliberately or by accident. Bar charts should start at zero.

  5. Q5IntermediateAdding one very low score to a class’s test results affects which average more?
    Show answer

    Answer: B. The mean

    The mean uses every value, so an outlier pulls it strongly; the median only depends on the middle value, so it barely moves.

  6. Q6IntermediateA correlation coefficient of r = 0.9 means…
    Show answer

    Answer: B. There is a strong positive linear relationship: as one goes up, the other tends to go up

    r ranges from −1 to +1. Values near ±1 mean a strong linear relationship, but correlation alone does not prove cause.

  7. Q7AdvancedIce-cream sales and shark attacks both rise in summer. What is the best explanation?
    Show answer

    Answer: B. A third factor, hot weather bringing more people to the beach, causes both

    This is a confounding variable. Correlation does not imply causation; controlled experiments are needed to show cause and effect.

  8. Q8AdvancedWhy can a small sample give a misleading picture?
    Show answer

    Answer: B. Random variation has a bigger effect, so patterns can appear or disappear by chance

    Try 5 days instead of 200 in the simulator: the trend and correlation jump around much more with fewer data points.

References and further reading

  1. Illowsky, B., & Dean, S. (2023). Introductory Statistics 2e, Chapter 2: Descriptive Statistics. OpenStax. openstax.org (opens in a new tab)
  2. Tufte, E. R. (2001). The Visual Display of Quantitative Information (2nd ed.). Graphics Press.
  3. Huff, D. (1954). How to Lie with Statistics. W. W. Norton.
  4. Cleveland, W. S., & McGill, R. (1984). Graphical perception: theory, experimentation, and application to the development of graphical methods. Journal of the American Statistical Association, 79(387), 531–554.

This simulator is a simplified educational model. Found an error? Let us know. See our educational disclaimer.