Made graph width adjust to window width automatically