I’d add Theodore and Andrew Jackson to that list.
Those two became great AFTER they won the presidency, not before.