updated drawChart function to pull values directly from json
time to sleep