graph appears on page load