Try it yourself · Class 8 Mathematics · Tales by Dots and Lines

Line graph with two series: compare two sets of numbers across a week

A line graph can show two things at once, so you can compare them day by day. The simulation draws customers visiting and purchasing in a shop, or two cities’ temperatures, and marks the gap on the day you pick.

Two data series for Monday to Sunday joined by lines. The green bar is the gap between the two values on the chosen day. The two-cities numbers are made-up example numbers.

The simulation needs JavaScript; everything it shows is explained below.

What to change

  • Tabs: shop customers (visiting and purchasing) or two cities (made-up example numbers).
  • Day: Monday to Sunday.
  • The picture: the green bar joins the two points on the chosen day.

What to watch

  • Shop, Sunday (the start): visiting 35, purchasing 26, gap 9, purchasing share 74.3% of visitors.
  • Shop, Wednesday: visiting 10, purchasing 7, gap 3, share 70.0%.
  • Shop, Tuesday: visiting 19, purchasing 8, gap 11, share 42.1%, the lowest of the week.
  • Two cities, Friday: City A 29, City B 21, gap 8, and City A is warmer.

The idea

Read two values on the same day from two lines, subtract them for the gap, and divide one by the other to get a percentage.

Try these questions

Work each one out with the simulation, tap to see the answer, then try the chapter quiz.

  1. NCERT

    The horizontal and vertical line in a line graph are usually called __________ and __________.
    Show the answer
    -axis -axis
  2. NCERT

    A line graph can also be a whole unbroken line.
    Show the answer
    True

More to try in Tales by Dots and Lines

Every simulation in the Lab