Updating data for line chart