Finished updating the data for line chart