Information Technology Topic
Bar, Line and Pie Charts
- Read notes
- Flashcards
- Quiz
- Confident
Study focus - 3 things
- Bar charts compare separate items, line charts show change over time, and pie charts show parts of one whole that add up to 100 per cent
- Every chart needs a title, and bar and line charts need a label on each axis saying what the categories and the values are
- To make a chart, select the data together with its labels, insert the chart, choose the type, then add the title and axis labels
Visual notes
Each bar's height shows how many of that item were sold. The title and both axis labels tell the reader what the chart means.
A line joins the points in time order, so the trend (up, with one small dip in March) is easy to see.
The slices add up to the whole allowance. A pie chart has no axes, so the title and the key do the labelling.
Section 1Why draw a chart?
A table of numbers is accurate, but it is slow to read. A chart turns the same numbers into a picture, so a reader can see the biggest, the smallest and the pattern at a glance. A spreadsheet draws the chart from cells. You select the data, including the names or labels, and the spreadsheet builds the chart from it. Three types are named in the syllabus: bar charts, line charts and pie charts. Each one suits a different kind of message, so choosing the right one is part of the skill.
Section 2Bar charts
A bar chart draws one bar for each category. The height of a bar is in proportion to its value (if the bars lie flat, the length is). The categories are named along one axis and the values are read off the other. Here is a Spanish Town school tuck shop's sales in one week: Patties 120, Juice 85, Bun 60, Water 95, Cake 40. The Patties bar is the tallest at 120 and the Cake bar is the shortest at 40. Patties sold 80 more than Cake, and exactly 3 times as many (120 ÷ 40 = 3). Altogether 400 items were sold. Bar charts are a good choice for comparing items where time is not the point, especially with many categories or long names. Some programs draw vertical bars and call that a column chart, and call flat bars a bar chart. For this syllabus, treat both as a bar chart. Watch out: for a bar chart, start the value scale at 0 as a rule. Then a bar twice as tall really means twice the value. A scale that starts higher makes small differences look huge.
Section 3Line charts
A line chart plots a point for each value and joins the points with a line. The categories, often time, run along the horizontal axis and the values are read off the vertical axis. Here are the monthly visitors to a school website: January 120, February 150, March 140, April 190, May 230, June 260. The line climbs from 120 in January to 260 in June, a rise of 140. It dips only once, in March (150 down to 140). The biggest rise between neighbouring months is March to April, up by 50. Line charts suit trends and changes over time, because the joined line shows continuity. For a longer series of readings, such as one reading every hour, a line chart is easier to follow than a crowd of bars.
Section 4Pie charts
A pie chart is a circle divided into slices. The area of each slice is in proportion to its value, so the slices show how a whole is shared out. Here is how a student spends a monthly allowance: Food J$4,000, Transport J$2,500, Savings J$2,000, Phone credit J$1,000, Other J$500 (a total of J$10,000). Each percentage is part ÷ whole × 100. Food is 4000 ÷ 10000 × 100 = 40%. Transport is 25%, Savings 20%, Phone credit 10% and Other 5%. The slices of a pie must add up to the whole: 40 + 25 + 20 + 10 + 5 = 100%. If they do not, a value is missing or wrong. Pie charts suit comparing proportions of a whole, and they work best with up to about six values. With many slices the small ones are hard to read. A pie chart has no axes, so it is labelled with a title and with names or percentages on the slices.
Section 5Titles and axis labels
A chart without words is a puzzle. Add a chart title, and on bar and line charts, add a label to each axis. The chart title says what the chart is about: 'Tuck shop sales in one week'. The horizontal axis label says what the categories are: 'Item sold' or 'Month'. The vertical axis label says what the numbers measure, with the unit if there is one: 'Number sold' or 'Visitors'. Here's the trick: ask 'could a stranger read this chart without help?' If they could not tell what the bars or the numbers on the side mean, a label is missing. In a spreadsheet you can insert a chart title, a subtitle and the axis names, and edit them by double-clicking the chart.
Section 6Choosing the right chart
Match the chart to the message. Comparing separate items (sales of five products, students in each form): bar chart. Showing a trend or change over time (visitors each month, temperature each hour): line chart. Showing parts of one whole (where an allowance goes, shares of a budget): pie chart. A bar chart can also show a short run of time points, but for a longer series a line chart is better. A pie chart is the wrong choice when the numbers are not parts of one whole, or when there are many categories, because the slices become too thin to compare.
Section 7Making a chart in a spreadsheet
1. Select the data, including the labels and the numbers. The labels give the chart its category names. 2. Insert a chart. A chart wizard walks you through the steps. 3. Choose the chart type: bar, line or pie. If you do nothing, the default is a column chart with vertical bars. 4. Add the chart title and, for bar and line charts, the axis labels. 5. Finish, then check the chart against the table. Every bar, point or slice should match a value. A finished chart can be exported as an image.
Examples
A school tuck shop in Spanish Town records the number of items sold in one week: Patties 120, Juice 85, Bun 60, Water 95, Cake 40. (a) State the best chart type for comparing the items, and give a reason. (b) Find which bar is the tallest and which is the shortest, and how many more of the first were sold than the second. (c) Write a suitable chart title, a label for the horizontal axis and a label for the vertical axis.
(a) A bar chart. The items are separate categories to be compared, and time is not the point. Each item gets its own bar and the heights can be compared at a glance. (b) The tallest bar is Patties (120) and the shortest is Cake (40). The difference is 120 - 40 = 80, so 80 more Patties than Cake were sold. (c) Title: Tuck shop sales in one week. Horizontal axis label: Item sold (it names the categories). Vertical axis label: Number sold (it says what the heights measure).
A student's monthly allowance is J$10,000 and is spent as follows: Food J$4,000, Transport J$2,500, Savings J$2,000, Phone credit J$1,000, Other J$500 (a total of J$10,000). (a) Find the percentage of the allowance spent on each heading. (b) Show that the percentages are suitable for a pie chart, and state the total of Transport and Savings. (c) She also wants to show how her savings balance changed month by month over six months. State the best chart type and justify it.
(a) Percentage = amount ÷ 10000 × 100. Food: 4000 ÷ 10000 × 100 = 40%. Transport: 2500 ÷ 10000 × 100 = 25%. Savings: 2000 ÷ 10000 × 100 = 20%. Phone credit: 1000 ÷ 10000 × 100 = 10%. Other: 500 ÷ 10000 × 100 = 5%. (b) 40 + 25 + 20 + 10 + 5 = 100%, so the five slices fill the whole circle exactly, and five slices is within the range a pie chart handles well. Transport and Savings together are 25% + 20% = 45%. (c) A line chart. A savings balance is a change over time, and a line joining the monthly points shows the trend. A pie chart would be wrong because the monthly balances are not parts of one whole.
Now let's water it
Session runs notes to flashcards to quiz back-to-back.
Where this comes from
- CSEC Information Technology Syllabus (CXC 30/G/SYLL 08, revised 2000, 2008, 2013) · Caribbean Examinations Council (CXC) · Section 7, Specific Objective 13 · Syllabus scope
- Calc Guide 7.6 (LibreOffice 7.6 Community) · The Document Foundation (LibreOffice Documentation Team) · Chapter 3, Chart Wizard and Gallery of chart types, pp 88-89 and 148-154, checked against (https://documentation.libreoffice.org/assets/Uploads/Documentation/en/CG7.6/CG76-CalcGuide.pdf) · Facts
- Calc Guide 7.6 (LibreOffice 7.6 Community) · The Document Foundation (LibreOffice Documentation Team) · Chapter 3, Titles, subtitles, and axis names, p 102, checked against (https://documentation.libreoffice.org/assets/Uploads/Documentation/en/CG7.6/CG76-CalcGuide.pdf) · Facts