A line graph is nothing but a way to represent two or more variables in the form of line or curves to visualize the concept and helps to understand it in a better form.
Solved Examples
Example 1: Draw a line graph for the given data.
Time
6 AM
10 AM
2 PM
6 PM
Temperature (in °C)
35
45
50
40
Solution:
Line Graph: Temperature vs Time
Example 2: Draw a line graph from the given data and answer the following questions.
Product A
150
125
100
50
Product B
125
150
50
100
(a) In the above graph, find in which year the sale of product A is maximum.
(b) Find in which year the sale of product B is the minimum.
(c) Find in which year the sale of products A and B is the same.
Solution:
Line Graph for Sale of Product A and B over the years
(a) In 2011, the sale of product A is maximum.
(b) In 2013, the sale of Product B is minimum.
(c) There is no year in which the sale of Product A and B is the same.
Example 3: Draw a compound line graph for the given data.
Samsung
Apple
One Plus
Vivo
Quarter 1
7
12
9
17
Quarter 2
32
21
20
25
Quarter 3
52
60
65
70
Solution:
Line Graph representing number of Mobile Phones sold in each quarter
Example 4: Draw a line graph for the given data.
Distance
20
30
35
45
Time
5
10
15
20
Solution:
Example 5: Draw a line graph for the given data.
Input
1
2
4
5
7
Output
2
5
11
14
20
Solution:
Practice Questions
Q1. Draw two perpendicular axes:
X-axis: Time
Y-axis: Temperature (in °C)
Q2. Choose a suitable scale for the Y-axis (e.g., 1 unit = 5°C).
Q3. Plot the following points:
(6 AM, 35)
(10 AM, 45)
(2 PM, 50)
(6 PM, 40)
Q4. Join the plotted points using straight lines.
Q5. Add a suitable title: Temperature Variation During the Day.