modified data for line chart