Render the graph once the document is ready.