Remove echo from graph viewer

Replace the echo with some real HTML for display. Part of #699