update the front end page about chart