update formatting for line graph json response