Made graph resizable