Graph Maker for Statistics

Paste or type your data and choose a graph: bar graph, dot plot, box plot, histogram, stem-and-leaf plot or scatter plot. Every statistic comes with its working, step by step, and the graph downloads as a PDF, PNG or SVG. It opens on a bar graph with a frequency table.

Chart

Data

One response per line or separated by commas (Bus, Walk, Bus), or a count on each line (Bus: 11).4 categories read.

Chart and downloads

How 30 students get to schoolFrequency02468101291173WalkBusCarBikeWay of getting to school

The PDF has the chart and every step of the working on Letter paper. Print it at 100% or Actual size. Your data stay in this browser.

Titles and labels

Bar graph settings

Working and PDF

Worked statistics

Frequency table

Frequency table
CategoryFrequencyRelative frequency
Walk930%
Bus1136.7%
Car723.3%
Bike310%

Total: 30. Relative frequency is each frequency ÷ 30, as a percentage.

The most common category (the mode) is Bus: 11 of 30, 36.7%.

Which graph should I use?

Start from the kind of data you have. Each graph has its own page with a guide to making and reading it by hand.

Choosing a graph
Your dataGraphWhy
Categories (bus, walk, car)Bar graphCounts of each category, with gaps between the bars.
One set of numbers, few different valuesDot plotEvery value is a dot, so the shape, gaps and mode show at a glance.
Numbers, comparing groups or spotting outliersBox plotThe five-number summary on one line; groups line up on one scale.
Many numbers, or values that rarely repeatHistogramValues grouped into equal bins show the shape of the distribution.
Two-digit numbers you want to keep visibleStem-and-leaf plotA sorted list and a picture of its shape in one.
Pairs of numbers (hours and scores)Scatter plotShows association between two variables, with a line of best fit.

Bar graphs and frequency tables

A bar graph is for categorical data: answers that are names rather than measurements. Count how many times each category appears (its frequency), then draw one bar per category with its height showing the count. A frequency table lists the same counts, usually with each one's relative frequency: the count divided by the total, often as a percentage. In England, frequency tables and bar charts for categorical data are part of the key stage 3 programme and GCSE Mathematics.

The tool's example is how 30 students get to school. It reads either responses ("Bus, Walk, Bus") or counts ("Bus: 11"), counts each category, and works out the table:

How 30 students get to schoolFrequency02468101291173WalkBusCarBikeWay of getting to school
The tool's bar graph of the example data.

Frequency table

Frequency table
CategoryFrequencyRelative frequency
Walk930%
Bus1136.7%
Car723.3%
Bike310%

Total: 30. Relative frequency is each frequency ÷ 30, as a percentage.

The most common category (the mode) is Bus: 11 of 30, 36.7%.

Bus is the most common category, so it is the mode of this data set: 11 of 30 students, 36.7%. Categorical data have a mode but no mean or median, since the categories have no numerical order.

How the working is done

Every number is worked out exactly, as a fraction, before it is rounded for display, so a mean of exactly 2.675 shows as 2.68 rather than the 2.67 that floating-point arithmetic would give. Values that are exact are shown exactly; values that had to be rounded say "(rounded)". The definitions follow the NIST/SEMATECH e-Handbook of Statistical Methods and the Common Core State Standards glossary. Where textbooks differ, the tool says so: quartiles can be found two ways for an odd number of values, and the steps show both when they disagree. The box plot page explains the two methods.

Getting your data in

  • Numbers: separated by commas, spaces, tabs or new lines, or pasted as a spreadsheet column. Use a point for decimals (2.5) and no thousands separators (1250).
  • Two groups: tick "Compare two groups" for side-by-side box plots, stacked dot plots and histograms, or a back-to-back stem-and-leaf plot.
  • Pairs: one x, y pair per line for a scatter plot, or two spreadsheet columns.
  • Categories: one response per line or separated by commas, or a category and its count on each line.
  • Checking: the number of values read shows under each box, with anything that was skipped and why.

Printing and sharing

Download PDF makes a Letter or A4 document with the graph and every step of the working, drawn as vectors so it prints sharply at 100%. PNG and SVG save just the graph, for slides and documents. Copy link shares the graph and its data; the link opens the same graph for anyone.

Frequently asked questions

What is the difference between a bar graph and a histogram?

A bar graph shows categories, such as ways of getting to school, so the bars can go in any order and have gaps between them. A histogram shows numbers grouped into intervals on a number line, so the bars sit in order and touch, and a bar's position along the axis means something. Use the histogram maker for measurements such as heights or test scores.

Can I paste data from Excel or Google Sheets?

Yes. Copy a column of numbers and paste it into the data box. Blank cells are skipped, and the heading cell (even one with a number in it, such as "Test 1") and anything else that is not a number are listed under the box, by line, so you can check them. Take out thousands separators first (1250, not 1,250): a comma could also separate two values, so the tool lists those numbers rather than guess. For a scatter plot, copy two columns side by side. For a bar graph, paste a column of responses, or two columns of category names and counts.

Is my data uploaded anywhere?

No. The graph, the working and the PDF are all made in your browser. The tool remembers your last graph on this device, and a share link carries the data in the part of the address after the #, which browsers don't send to the website.

Why don’t my percentages add up to exactly 100%?

Each relative frequency is rounded on its own, to one decimal place. Three categories of 1 in 3 each are 33.3%, which add to 99.9%. The tool says so under the table when it happens, rather than nudging one value to make the total come out.

How much data can I use?

Up to 1,000 values in each box (or 1,000 pairs for a scatter plot) and 30 categories for a bar graph. Anything over the limit is left out and the tool says how much. Very large data sets are better shown as a histogram or box plot than as dots or leaves.