made line graph show accumulated spending