Render chart when page loads