getting data to line graph