Self updating chart using Rest API