graph ajax update