making the graph not take up empty space on page load