Grab data from server when document is ready and draw graph
Move code to sum and update to separate function