Made graph less wide and centered it. Refactored code.