Chart titles, axis labels and legends

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Chart titles, axis labels and legends

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. What does a chart title tell the viewer?
A The colour of every bar
B The topic of the chart
2. Which axis label is better for a column chart showing how far students walk?
A Distance walked (metres)
B Numbers
3. A line chart has two coloured lines, one for Class 5A and one for Class 5B. What do you need so the viewer knows which line is which?
A A legend
B A longer title
4. True or false: Axis labels help the viewer know what each axis shows.
A True
B False
5. A chart shows temperature, but the vertical axis just says 'Temperature'. What is missing?
A A different chart type
B The units, like degrees Celsius (°C)

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1Chart title: Pets in Year 5 (number of students) AThe legend explains what each colour or symbol in the chart stands for.
2Legend: blue = Year 5, orange = Year 6 BWithout a legend the viewer cannot tell what the red and blue bars stand for. Fix it by adding a legend that names each colour.
3An axis title names the data on that axis and gives its units so the viewer knows what is measured. CLegend: Girls = green, Boys = purple
4A chart with more than one data series needs a legend so the viewer can tell the series apart. DThe axis title leaves out the unit, so the viewer cannot tell if the time is in seconds, minutes or hours. Fix it by writing Time (seconds).
5Y axis title: Time (no unit given) EY axis title: Distance jumped (cm)
6Chart with red and blue bars but no legend FThe title tells the viewer what topic the chart is about.

Definitions

Title, axis labels and legend

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
chart._____ = "Favourite Pets in Year 5"
2.
chart.__________ = "Type of pet"
3.
chart.title = "Time Spent Reading" chart.__________ = "Time (minutes)"
4.
chart.addSeries("Boys", "blue") chart.addSeries("Girls", "red") chart.______ = True
5.
chart.addSeries("Cats", "orange") chart.addSeries("Dogs", "green") chart.legend = ____

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A chart = new_chart("bar")
B chart.title("Pets in class")
C chart.y_label("Type of pet")
D chart.y_label("Pets (count)")
Question 2
A chart = new_chart("line")
B chart.title("Weekly rainfall")
C chart.x_label("Week")
D chart.y_label("Rain")
E chart.show()
Question 3
A chart = new_chart("column")
B chart.title(Hours of sleep)
C chart.x_label("Student")
D chart.y_label("Sleep (hours)")
Question 4
A chart = new_chart("pie")
B chart.title("Favourite fruit")
C chart.add_data(fruit_votes)
D chart.hide_legend()
E chart.show()
Question 5
A chrt = new_chart("bar")
B chart.title("Cars at school")
C chart.x_label("Day")
D chart.y_label("Cars (count)")

Answer Key

Chart titles, axis labels and legends
Section A: Quick Questions
Q1
B — The topic of the chart
Q2
A — Distance walked (metres)
Q3
A — A legend
Q4
A — True
Q5
B — The units, like degrees Celsius (°C)
Section B: Match the Pairs
Q1
Chart title: Pets in Year 5 (number of students) → The title tells the viewer what topic the chart is about.
Q2
Legend: blue = Year 5, orange = Year 6 → The legend explains what each colour or symbol in the chart stands for.
Q3
An axis title names the data on that axis and gives its units so the viewer knows what is measured. → Y axis title: Distance jumped (cm)
Q4
A chart with more than one data series needs a legend so the viewer can tell the series apart. → Legend: Girls = green, Boys = purple
Q5
Y axis title: Time (no unit given) → The axis title leaves out the unit, so the viewer cannot tell if the time is in seconds, minutes or hours. Fix it by writing Time (seconds).
Q6
Chart with red and blue bars but no legend → Without a legend the viewer cannot tell what the red and blue bars stand for. Fix it by adding a legend that names each colour.
Section C: Definitions
Q1
Title, axis labels and legend — The parts that help a viewer read a chart: the title says the topic, axis labels name the data and units, the legend explains colours.
Section D: Fill in the Blanks
Q1
chart.title = "Favourite Pets in Year 5"
Q2
chart.xAxisTitle = "Type of pet"
Q3
chart.title = "Time Spent Reading" chart.yAxisTitle = "Time (minutes)"
Q4
chart.addSeries("Boys", "blue") chart.addSeries("Girls", "red") chart.legend = True
Q5
chart.addSeries("Cats", "orange") chart.addSeries("Dogs", "green") chart.legend = True
Section E: Spot the Error
Q1
C — The types of pet are the categories along the bottom, so they belong on the x axis. The line should be chart.x_label("Type of pet"). The y axis label should name the count.
Q2
D — The axis label has no unit, so a viewer cannot tell how the rain was measured. It should include the unit, like chart.y_label("Rain (mm)").
Q3
B — The title text is missing its quote marks, so the code is broken. It should be chart.title("Hours of sleep").
Q4
D — A pie chart uses different colours for each slice. Without a legend the viewer cannot tell which colour means which fruit. It should be chart.show_legend().
Q5
A — The variable name is misspelt as chrt. The later lines use chart, so the program would fail. It should be chart = new_chart("bar").