Altered line graph to work with websockets.