B7 · Data Literacy and Visualisation

Bar Graphs, Line Graphs and Pie Charts

A bar graph uses bars of different lengths to compare amounts across categories. A line graph joins points to show how something changes over time. A pie chart divides a circle into slices to show how a whole is split into parts.

10 min Beginner Jump to the activity

What you need: Nothing. This page starts from the beginning, with no programming and no formulas.

Definition

You have one set of data. Should it be a bar graph, a line graph or a pie chart? Does it matter?

A bar graph uses bars of different lengths to compare amounts across categories. A line graph joins points to show how something changes over time. A pie chart divides a circle into slices to show how a whole is split into parts.

In simple words

Bars are like children standing in a line by height: easy to see who is tallest. A line is like the path of a climber on a hill: easy to see when it went up or down. A pie is like a pizza shared among friends: easy to see who got the biggest slice.

Why it matters

Each chart answers a different kind of question. The right chart makes a pattern obvious at a glance; the wrong one hides it or misleads.

Key terms

Bar graph
A chart comparing categories with bars whose lengths show amounts.
Line graph
A chart that joins data points in order, usually to show change over time.
Pie chart
A circle divided into slices that show parts of a whole.
Trend
The general direction of change over time: rising, falling or steady.
Proportion
A part compared with the whole, such as a quarter or 25 per cent.
Pictograph
A chart that uses small pictures, each standing for a fixed amount.

Explained in detail

Bar graphs: comparing categories

Bar graphs are the most versatile chart. Each category, such as a state, a fruit or a sport, gets a bar, and the length shows the amount. Our eyes are very good at comparing lengths from a common baseline, which is why bars are easy to read accurately. Bars can be vertical or horizontal; horizontal bars work well when the category names are long. Sorting the bars from largest to smallest usually makes the comparison clearer.

Line graphs: change over time

A line graph puts time along the bottom, such as days, months or years, and joins the measurements with a line. The slope shows the trend at a glance: rising, falling or steady, and how fast. Several lines on one graph, in different colours with a legend, compare trends, such as rainfall this year against the ten-year average. Use a line only when the order along the bottom matters. Joining unrelated categories, such as fruits, with a line suggests a trend that does not exist.

Pie charts: parts of a whole

A pie chart shows how one whole divides into parts, such as how a family's monthly spending splits between food, rent, travel and savings. The slices must add up to 100 per cent. Pie charts work only with a few slices, ideally five or fewer, and only when the parts genuinely make up a whole. People judge angles and areas less accurately than lengths, so when two slices are similar, a bar graph shows the difference more clearly. Three-dimensional pie charts are especially misleading, because tilting the circle makes the front slices look bigger.

One data set, three charts

DataBest chartWhy
Number of students in each sports clubBar graphComparing separate categories
A city's temperature each month of the yearLine graphChange over time
How a household budget is dividedPie chartParts of one whole
Population of twenty statesBar graph, sortedToo many slices for a pie

Florence Nightingale's chart

In 1858 the nurse and statistician Florence Nightingale used a chart she designed, a kind of circular bar graph, to show that far more British soldiers in the Crimean War were dying from preventable disease in dirty hospitals than from their wounds. The picture persuaded officials in a way that tables of numbers had not, and it helped bring about reforms in hospital sanitation. A well-chosen chart can change decisions.

How it works

Your questionChart
Which is biggest or smallest?Bar graph
How did it change over time?Line graph
What share does each part have of the whole?Pie chart (few parts) or bar graph

Try it yourself

One family budget, three ways

The Sharma family spends ₹30,000 a month: food ₹12,000, rent ₹9,000, travel ₹3,000, school ₹4,000, savings ₹2,000.

Match the data to the best chart

Which chart would you choose?

  • Daily number of visitors to a museum over a year
  • Favourite subjects of a class
  • How a school's land is divided between buildings, playground and garden

Common mistakes

  • Using a line graph for unrelated categories.
  • Making a pie chart with too many slices, or slices that do not add to 100 per cent.
  • Adding 3D effects that distort sizes.

Check yourself

Question 1

1. Which chart best shows how a city's temperature changed over a year?

Question 2

2. When does a pie chart work well?

Question 3

3. Why are bar graphs easy to read accurately?

Summary

  • Bar graphs compare categories; line graphs show change over time; pie charts show parts of a whole.
  • Pies need few slices that add to 100 per cent; lines need a meaningful order.
  • The right chart makes the pattern obvious; avoid 3D distortion.

Finished reading?

Sources: The Data Visualisation Catalogue · Ministry of Statistics and Programme Implementation (India)