Undo reverses the most recent action that resulted in a change to the document. For example, if you accidentally deleted a graph, you can select Undo Delete and your graph will reappear.
The Undo command changes to Can't Undo on the menu if you cannot reverse your last action.