A line graph can be obtained from a bar graph by joining the points on the top edge of the bars.
We can get a line graph from a bar graph by joining only the midpoints of the top edges of the bars.