updated graph on the last dataset