Move render_graph and render_saved_graph views to api.