If Excel freezes when deleting rows or columns, identify the possible causes and then resolve the issue. Turn off Auto Save, disable COM Add-ins, etc.
If you need a legend longer than your data, you’ve gone too far.