๐Ÿ“˜ CodingMarble Learn

Showing Data: Dot Plots, Bar Graphs, Histograms and Line Graphs

Graphs turn a list of numbers into a picture. A dot plot puts one dot per item above a number line. A bar graph compares separate categories with gaps between bars. A histogram shows grouped numerical data in class intervals with bars that touch. A line graph shows change over time. A graph can mislead if its axis does not start at 0, its scale is uneven or its pictures are the wrong size.

๐ŸŽฌ Step-by-step story

  1. Dot plot: each dot is one student. Dots stack above the number of books they read. The tallest stack shows the most common value.
  2. Bar graph: each bar is one category, like a fruit. Taller bar, more votes. Bars have equal gaps.
  3. Histogram: heights are grouped into class intervals like 130โ€“140 cm. The bars touch, because the numbers run on without gaps.
  4. Line graph: one point for each day's temperature, joined by a line. It shows how something changes over time.
  5. Misleading graph: Shop B looks much bigger than Shop A, but 55 is only a little more than 52. The y-axis starts at 50, not 0.
  6. Your turn: pick any graph. On the last one, switch "start at 0" on and off to see the trick.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

๐Ÿค” Common doubts, cleared

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

A bar graph compares separate categories, so its bars have gaps. A histogram shows numbers grouped into intervals on a number line, so its bars touch.

When should I use a dot plot instead of a bar graph?

When you have a small set of numbers and want to see every single value, the mode and any gaps.

Can I join the tops of bars in a bar graph with a line?

Only if the x-axis is in time order. For categories like fruits the line between them has no meaning.

Which interval does a boundary value go into?

Into the interval where it is the lower limit: 140 goes in 140โ€“150.

How can a graph be wrong if all its numbers are right?

By its drawing: cut axis, uneven scale or big pictures change what the eye sees. Toggle "start at 0" to see the same numbers tell two stories.

Is cutting the axis always cheating?

Not always. For small changes it can help, but there must be a clear break mark and the reader should be told.

Dot plots

A dot plot uses a number line. For every item of data, you put one dot above its value. Equal values stack up.

It is good for small sets of numbers (up to about 30). You can quickly see the most common value (the mode), the smallest and largest values, and any gaps or odd values (outliers).

Bar graphs

A bar graph compares separate groups, called categories (fruits, sports, cities). Each bar has the same width. Its height (or length) shows the number. Bars have equal gaps, because the categories are separate.

Parts of a good bar graph: a title, labelled axes, a scale that goes up in equal steps and starts at 0. A double bar graph puts two bars side by side for each category to compare two groups (for example boys and girls).

Histograms and class intervals

When there are many different numbers (heights, marks, times), we group them into class intervals such as 130โ€“140, 140โ€“150. The number in each interval is its frequency.

A histogram draws one bar for each interval. The bars touch, because the number line has no gaps. Usual rule: 140 goes in 140โ€“150, not in 130โ€“140 (the lower limit is included, the upper limit is not).

Bar graphHistogram
Categories (words)Numbers in intervals
Gaps between barsNo gaps
Order of bars can changeOrder fixed by the number line

Line graphs

A line graph shows how one quantity changes over time: temperature over a day, a child's height each year, a phone's battery level. Time goes on the x-axis. Plot a point for each reading and join the points in order.

A line going up means an increase, going down means a decrease, flat means no change. A steeper line means faster change. Points between readings are only estimates.

Choosing the right graph

Spotting misleading graphs

A graph can tell a false story even when every number is correct. Check these things:

  1. Where does the axis start? A y-axis that starts at 50 instead of 0 makes small differences look big. A zig-zag break mark should warn you.
  2. Is the scale even? Steps like 0, 10, 20, 50, 100 squash or stretch parts of the graph.
  3. Picture size: if a picture is twice as tall and twice as wide, it looks 4 times bigger, not 2.
  4. Missing labels or title: you cannot tell what is measured.
  5. Cherry-picking: showing only a few months that suit the story.
  6. 3D effects that tilt bars so front bars look larger.

Key formulas and definitions

Worked examples

1. Dot plot data: books read by students: 0, 1, 1, 2, 2, 2, 3. Draw it in words and find the mode.

Number line 0โ€“3. One dot above 0, two above 1, three above 2, one above 3. The tallest stack is above 2, so the mode is 2 books.

2. Favourite sport votes: cricket 12, football 8, badminton 5. Which graph should you draw and what goes on each axis?

A bar graph (separate categories). x-axis: sports, with equal gaps. y-axis: number of votes, scale 0, 2, 4 โ€ฆ 12.

3. Marks of 10 students: 12, 18, 25, 27, 31, 33, 36, 38, 41, 47. Make a frequency table with intervals 10โ€“20, 20โ€“30, 30โ€“40, 40โ€“50.

10โ€“20: 12, 18 โ†’ 2. 20โ€“30: 25, 27 โ†’ 2. 30โ€“40: 31, 33, 36, 38 โ†’ 4. 40โ€“50: 41, 47 โ†’ 2. Total 10 โœ“. Draw touching bars of heights 2, 2, 4, 2.

4. Temperature at 6 am, 9 am, 12 pm, 3 pm, 6 pm: 22, 27, 32, 33, 28 ยฐC. When did it rise fastest?

Changes: +5, +5, +1, โˆ’5. The rise is 5 ยฐC between 6โ€“9 am and between 9 amโ€“12 pm, so those two parts of the line are equally steep and steepest upward.

5. A bar graph shows Brand A = 98 and Brand B = 100 with the y-axis starting at 96. The bar for B looks twice as tall as A. Is that fair?

Heights shown: 98 โˆ’ 96 = 2 and 100 โˆ’ 96 = 4, so B looks 2 times bigger. Real ratio: 100 รท 98 โ‰ˆ 1.02, only 2% more. The graph is misleading; the axis should start at 0.

6. Is 50 counted in the interval 40โ€“50 or 50โ€“60?

In 50โ€“60. By the usual rule the lower limit is included and the upper limit is not.

Common mistakes

Practice quiz

1. Which graph has bars that touch?
2. Best graph for a city's temperature every hour:
3. In a dot plot, the tallest stack shows the:
4. A graph is most likely misleading if:
5. In the interval 20โ€“30, the value 30 is:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What are the main types of graphs in maths?

Pictographs, dot plots, bar graphs, histograms, pie charts and line graphs. Each suits a different kind of data.

Why does a histogram have no gaps?

Its bars stand for intervals on a continuous number line, and the intervals follow each other with no gaps.

How do I spot a misleading graph?

Check where the axis starts, whether the scale is even, whether pictures are fair in size, and whether labels and a title are present.

Where this is taught

CBSE (India)Class 8Tales by Dots and Lines

Learn first

Learn next

Related lessons

All Maths lessons