updates to json data and graph draing