Intermediate
60 mins
Teacher/Student led
+85 XP
Teacher-led from the board. Pupils do not need a device, but can follow on one.

Bar Charts and Pie Charts

Turn a frequency table from a survey into a bar chart for comparing categories and a pie chart for showing parts of a whole. Practice drawing both and decide which chart suits different questions.

Teacher Class Feed

Load previous activity
    Your turn
    Your teacher is running this lesson on the board. Here is the part you can try yourself.
    Bar chart builder
    Pie chart builder

    1 - Getting Started ~5 mins

    You already have a frequency table from your survey. A column of numbers is accurate, but it is hard to spot the biggest option or the share of the whole at a glance.

    Today you turn that table into two charts: a bar chart for comparing categories, and a pie chart for showing parts of a whole. By the end you will have both on paper for your portfolio, and you will be able to say which chart fits which kind of question.

    2 - What You'll Learn ~8 mins

    Same survey, two charts. The bar chart makes it easy to see which category is tallest. The pie chart makes it easy to see each category’s share of the full set of responses.

    ConceptWhy it mattersExample
    Bar chart — one bar per category; height shows the countBest for comparing options side by side (which got more?)Housing 9 vs Transport 6 is obvious from the bar heights
    Pie chart — slice angle = count ÷ total × 360°Best for showing parts of one whole (what share?)9 out of 24 is 135°, just over a third of the pie
    Choosing the chart — match the chart to the questionThe wrong chart hides the finding you care about“Who won?” → bar; “What share chose housing?” → pie

    Worked class data for today (24 responses to “Which local issue should the council prioritise?”):

    • Housing: 9
    • Public transport: 6
    • Youth facilities: 5
    • Waste and recycling: 4

    3 - Try It Yourself: Build the Bar Chart ~17 mins

    Open the bar-chart builder. Set one bar for each category from the worked class data, and match the heights to the frequency table:

    • Housing: 9
    • Public transport: 6
    • Youth facilities: 5
    • Waste and recycling: 4

    Drag each bar until it hits the right value on the scale. Check that the tallest bar is Housing and that Waste is the shortest. If your own survey has different categories and counts, rebuild the chart with your numbers instead once you have matched the worked example.

    Build the bar chart

    4 - Build the Pie Chart from the Same Data ~15 mins

    Now show the same survey as parts of a whole. In the pie-chart builder, set each category count to match the frequency table (or your own survey totals):

    • Housing: 9
    • Public transport: 6
    • Youth facilities: 5
    • Waste and recycling: 4

    Watch the slices grow as the counts change. Turn on percentages and degrees if they are available, and check Housing is just over a third of the pie (9 ÷ 24 = 37.5%, which is 135°). Compare the pie with the bar chart: which one answers “who won?” faster, and which one answers “what share chose housing?” faster?

    Build the pie chart

    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2026. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more