changing graph to a line chart