You get the data from server, update your previously available datasetand then probably use one of the freely available libraries to draw the graph (eg: http://www.rgraph.net)
Things you might want to considering : If your chart is represents a state , get only the new data with xhr , update data on client and draw .